r1107 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Sep 20 16:52:07 CEST 2006


Author: phk
Date: 2006-09-20 16:52:07 +0200 (Wed, 20 Sep 2006)
New Revision: 1107

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Examine queue length, not how many have passed through the queue over all time.

MFC: yes.


Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2006-09-20 10:21:24 UTC (rev 1106)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2006-09-20 14:52:07 UTC (rev 1107)
@@ -303,7 +303,7 @@
 	 * the result will be
 	 */
 	if (sp->obj == NULL &&
-	    (VSL_stats->n_wrk_overflow >
+	    (VSL_stats->n_wrk_queue >
 	    (params->wthread_max * params->overflow_max) / 100)) {
 		VSL_stats->n_wrk_drop++;
 		UNLOCK(&tmtx);




More information about the varnish-commit mailing list