Commit 1b6b671a authored by Guillaume Quintard's avatar Guillaume Quintard Committed by Pål Hermunn Johansen

Make blacklist mandatory

parent dee325d3
......@@ -197,10 +197,11 @@ vdir_pick_by_weight(const struct vdir *vd, double w,
VCL_BACKEND be = NULL;
unsigned u;
AN(blacklist);
for (u = 0; u < vd->n_backend; u++) {
be = vd->backend[u];
CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC);
if (blacklist != NULL && vbit_test(blacklist, u))
if (vbit_test(blacklist, u))
continue;
a += vd->weight[u];
if (w < a)
......
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