From 5ed4ce0f66034b3f5adceda2ac2734d9153eebd9 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 22 Sep 2008 13:36:34 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_pool.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5