[master] 8bb3709 Assert that we have stats counters when we try to get a fd from a backend. (ie: the VCL is warm)

Poul-Henning Kamp phk at FreeBSD.org
Mon Jun 22 11:39:12 CEST 2015


commit 8bb370944142ac8900e71087a26f0bbbbd91359b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jun 22 08:53:21 2015 +0000

    Assert that we have stats counters when we try to get a fd from a backend.
    (ie: the VCL is warm)

diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index 930598e..a057a14 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -90,6 +90,7 @@ vbe_dir_getfd(struct worker *wrk, const struct director *d, struct busyobj *bo)
 	CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC);
 	CHECK_OBJ_NOTNULL(d, DIRECTOR_MAGIC);
 	CAST_OBJ_NOTNULL(bp, d->priv, BACKEND_MAGIC);
+	AN(bp->vsc);
 	CAST_OBJ_NOTNULL(vrt, d->priv2, VRT_BACKEND_MAGIC);
 
 	if (!VBE_Healthy(bp, NULL)) {



More information about the varnish-commit mailing list