[master] 31cfcdc1a gc superflous argument
Nils Goroll
nils.goroll at uplex.de
Wed Mar 6 15:26:07 UTC 2019
commit 31cfcdc1ac0ad69449a63d957412b957263da7aa
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Mar 6 14:53:30 2019 +0100
gc superflous argument
diff --git a/lib/libvmod_directors/vdir.c b/lib/libvmod_directors/vdir.c
index 91890d2c9..bb6bacec6 100644
--- a/lib/libvmod_directors/vdir.c
+++ b/lib/libvmod_directors/vdir.c
@@ -283,9 +283,9 @@ vdir_list(VRT_CTX, struct vdir *vd, struct vsb *vsb, int pflag, int jflag,
}
static unsigned
-vdir_pick_by_weight(const struct vdir *vd, double w,
- const struct vbitmap *healthy)
+vdir_pick_by_weight(const struct vdir *vd, double w)
{
+ const struct vbitmap *healthy = vd->healthy;
double a = 0.0;
unsigned u;
@@ -319,7 +319,7 @@ vdir_pick_be(VRT_CTX, struct vdir *vd, double w)
}
}
if (tw > 0.0) {
- u = vdir_pick_by_weight(vd, w * tw, vd->healthy);
+ u = vdir_pick_by_weight(vd, w * tw);
assert(u < vd->n_backend);
be = vd->backend[u];
CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC);
More information about the varnish-commit
mailing list