From 753b558f45ba6b011a596c99af3aeba411da6683 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 17 Sep 2006 09:26:24 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5