Commit 5b81596e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Enforce admin health at director level

parent 7de8e836
......@@ -172,16 +172,18 @@ VDI_Http1Pipe(struct req *req, struct busyobj *bo)
*/
int
VRT_Healthy(VRT_CTX, VCL_BACKEND be)
VRT_Healthy(VRT_CTX, VCL_BACKEND d)
{
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
if (be == NULL)
if (d == NULL)
return (0);
CHECK_OBJ_NOTNULL(d, DIRECTOR_MAGIC);
if (!VDI_Healthy(d, NULL))
return (0);
CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC);
if (be->healthy == NULL)
if (d->healthy == NULL)
return (1);
return (be->healthy(be, ctx->bo, NULL));
return (d->healthy(d, ctx->bo, NULL));
}
/* Send Event ----------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment