r1041 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Sep 17 00:00:35 CEST 2006


Author: phk
Date: 2006-09-17 00:00:35 +0200 (Sun, 17 Sep 2006)
New Revision: 1041

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Change statistics from gauge to counter


Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2006-09-16 21:45:27 UTC (rev 1040)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2006-09-16 22:00:35 UTC (rev 1041)
@@ -197,7 +197,6 @@
 			w->wrq = TAILQ_FIRST(&qp->req);
 			AN(w->wrq);
 			TAILQ_REMOVE(&qp->req, w->wrq, list);
-			VSL_stats->n_wrk_queue--;
 			UNLOCK(&qp->mtx);
 			wrk_do_one(w);
 			LOCK(&qp->mtx);
@@ -257,11 +256,11 @@
 	}
 	
 	TAILQ_INSERT_TAIL(&qp->req, &sp->workreq, list);
-	VSL_stats->n_wrk_queue++;
 	qp->overflow++;
 	UNLOCK(&qp->mtx);
 
 	LOCK(&tmtx);
+	VSL_stats->n_wrk_queue++;
 	/* Can we create more threads ? */
 	if (VSL_stats->n_wrk >= params->wthread_max) {
 		VSL_stats->n_wrk_max++;




More information about the varnish-commit mailing list