From: phk Date: Mon, 22 Sep 2008 13:36:34 +0000 (+0000) Subject: Supposedly the fix for #324: An oversight in r3188 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ed4ce0f66034b3f5adceda2ac2734d9153eebd9;p=varnish Supposedly the fix for #324: An oversight in r3188 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3213 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index ba68ac76..8fdec518 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -441,6 +441,8 @@ wrk_decimate_flock(struct wq *qp, double t_idle, struct varnish_stats *vs) 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);