From 4967d35cbf56c495349a8390f044997b92098a81 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 13 Feb 2008 11:35:10 +0000 Subject: [PATCH] Fix a bug relating to vbe_conn statistics counter. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2452 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_backend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_backend.c b/varnish-cache/bin/varnishd/cache_backend.c index 7589f890..a8493170 100644 --- a/varnish-cache/bin/varnishd/cache_backend.c +++ b/varnish-cache/bin/varnishd/cache_backend.c @@ -260,8 +260,6 @@ VBE_NewConn(void) if (vc != NULL) { VSL_stats->backend_unused--; VTAILQ_REMOVE(&vbe_conns, vc, list); - } else { - VSL_stats->n_vbe_conn++; } UNLOCK(&VBE_mtx); } @@ -271,6 +269,7 @@ VBE_NewConn(void) XXXAN(vc); vc->magic = VBE_CONN_MAGIC; vc->fd = -1; + VSL_stats->n_vbe_conn++; return (vc); } -- 2.39.5