]> err.no Git - varnish/commitdiff
Fix a bug relating to vbe_conn statistics counter.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 13 Feb 2008 11:35:10 +0000 (11:35 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 13 Feb 2008 11:35:10 +0000 (11:35 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2452 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_backend.c

index 7589f890488fbae7a49fb471730bb93124a84869..a84931709858e772793f99507331e0cc3b7313e3 100644 (file)
@@ -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);
 }