r3213 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Sep 22 15:36:34 CEST 2008


Author: phk
Date: 2008-09-22 15:36:34 +0200 (Mon, 22 Sep 2008)
New Revision: 3213

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Supposedly the fix for #324:  An oversight in r3188



Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2008-09-22 09:35:03 UTC (rev 3212)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2008-09-22 13:36:34 UTC (rev 3213)
@@ -441,6 +441,8 @@
 		w = VTAILQ_LAST(&qp->idle, workerhead);
 		if (w != NULL && (w->lastused < t_idle || qp->nthr > nthr_max))
 			VTAILQ_REMOVE(&qp->idle, w, list);
+		else
+			w = NULL;
 	}
 	UNLOCK(&qp->mtx);
 




More information about the varnish-commit mailing list