r2452 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Feb 13 12:35:10 CET 2008


Author: phk
Date: 2008-02-13 12:35:10 +0100 (Wed, 13 Feb 2008)
New Revision: 2452

Modified:
   trunk/varnish-cache/bin/varnishd/cache_backend.c
Log:
Fix a bug relating to vbe_conn statistics counter.


Modified: trunk/varnish-cache/bin/varnishd/cache_backend.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_backend.c	2008-02-13 10:59:25 UTC (rev 2451)
+++ trunk/varnish-cache/bin/varnishd/cache_backend.c	2008-02-13 11:35:10 UTC (rev 2452)
@@ -260,8 +260,6 @@
 		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 @@
 	XXXAN(vc);
 	vc->magic = VBE_CONN_MAGIC;
 	vc->fd = -1;
+	VSL_stats->n_vbe_conn++;
 	return (vc);
 }
 




More information about the varnish-commit mailing list