Commit 24270700 authored by Guillaume Quintard's avatar Guillaume Quintard

Make blacklist mandatory

parent e91dc411
......@@ -193,10 +193,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