r1048 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Sep 17 11:26:24 CEST 2006


Author: phk
Date: 2006-09-17 11:26:24 +0200 (Sun, 17 Sep 2006)
New Revision: 1048

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Fix logic bug so we don't reap worker threads all the time.


Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2006-09-17 09:06:16 UTC (rev 1047)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2006-09-17 09:26:24 UTC (rev 1048)
@@ -339,7 +339,7 @@
 			w = TAILQ_LAST(&qp->idle, workerhead);
 			if (w != NULL &&
 			   (w->idle + params->wthread_timeout < now ||
-			    VSL_stats->n_wrk <= params->wthread_max))
+			    VSL_stats->n_wrk > params->wthread_max))
 				TAILQ_REMOVE(&qp->idle, w, list);
 			else 
 				w = NULL;




More information about the varnish-commit mailing list