From 8ff03ede0902e68666793d6a004ed9431c799b1d Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Jul 2006 20:29:26 +0000 Subject: [PATCH] Make sure the grim reaper doesn't touch busy objects either. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@356 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_expire.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_expire.c b/varnish-cache/bin/varnishd/cache_expire.c index 89c8b1a4..0939319c 100644 --- a/varnish-cache/bin/varnishd/cache_expire.c +++ b/varnish-cache/bin/varnishd/cache_expire.c @@ -56,6 +56,11 @@ exp_hangman(void *arg) TAILQ_FOREACH(o, &exp_deathrow, deathrow) { if (o->ttl >= t) break; + if (o->busy) { + VSL(SLT_Debug, 0, + "Grim Reaper: Busy object xid %u", o->xid); + continue; + } if (o->refcnt == 0) break; } -- 2.39.5