From: phk Date: Wed, 13 Feb 2008 11:35:10 +0000 (+0000) Subject: Fix a bug relating to vbe_conn statistics counter. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4967d35cbf56c495349a8390f044997b92098a81;p=varnish 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 --- 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); }