From: phk Date: Sun, 17 Sep 2006 09:26:24 +0000 (+0000) Subject: Fix logic bug so we don't reap worker threads all the time. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=753b558f45ba6b011a596c99af3aeba411da6683;p=varnish Fix logic bug so we don't reap worker threads all the time. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1048 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 82c91453..04a815a1 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -339,7 +339,7 @@ wrk_reaperthread(void *priv) 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;