Commit e45c93be authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Supposedly the fix for #324: An oversight in r3188



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3213 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9cf3ffa6
...@@ -441,6 +441,8 @@ wrk_decimate_flock(struct wq *qp, double t_idle, struct varnish_stats *vs) ...@@ -441,6 +441,8 @@ wrk_decimate_flock(struct wq *qp, double t_idle, struct varnish_stats *vs)
w = VTAILQ_LAST(&qp->idle, workerhead); w = VTAILQ_LAST(&qp->idle, workerhead);
if (w != NULL && (w->lastused < t_idle || qp->nthr > nthr_max)) if (w != NULL && (w->lastused < t_idle || qp->nthr > nthr_max))
VTAILQ_REMOVE(&qp->idle, w, list); VTAILQ_REMOVE(&qp->idle, w, list);
else
w = NULL;
} }
UNLOCK(&qp->mtx); UNLOCK(&qp->mtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment