[master] 429c0a8eb gc an over-zealous test
Nils Goroll
nils.goroll at uplex.de
Wed Mar 6 15:26:07 UTC 2019
commit 429c0a8eb4a9fb02fa5202adbb108652c7aea4ee
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Mar 6 14:49:37 2019 +0100
gc an over-zealous test
diff --git a/lib/libvmod_directors/vdir.c b/lib/libvmod_directors/vdir.c
index a27f6474d..91890d2c9 100644
--- a/lib/libvmod_directors/vdir.c
+++ b/lib/libvmod_directors/vdir.c
@@ -287,13 +287,10 @@ vdir_pick_by_weight(const struct vdir *vd, double w,
const struct vbitmap *healthy)
{
double a = 0.0;
- VCL_BACKEND be = NULL;
unsigned u;
AN(healthy);
for (u = 0; u < vd->n_backend; u++) {
- be = vd->backend[u];
- CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC);
if (! vbit_test(healthy, u))
continue;
a += vd->weight[u];
More information about the varnish-commit
mailing list