[4.1] 36ce687 Decrement the VBE.*.conn gauge

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Jul 8 12:53:07 CEST 2016


commit 36ce6871100424c18cda1f7903c06aae50824c5a
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Jul 8 12:41:07 2016 +0200

    Decrement the VBE.*.conn gauge
    
    Fixes #2011

diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index 039d3b2..905bb13 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -166,6 +166,7 @@ vbe_dir_finish(const struct director *d, struct worker *wrk,
 	}
 	assert(bp->n_conn > 0);
 	bp->n_conn--;
+	bp->vsc->conn--;
 #define ACCT(foo)	bp->vsc->foo += bo->acct.foo;
 #include "tbl/acct_fields_bereq.h"
 #undef ACCT



More information about the varnish-commit mailing list