From: phk Date: Fri, 20 Feb 2009 18:05:34 +0000 (+0000) Subject: Don't try to rush waiting sessions of refcount is zero, there cannot be X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=573665fd7fd0cd6e7a19f0d4d29c33b8cd07321f;p=varnish Don't try to rush waiting sessions of refcount is zero, there cannot be any (they would hold a reference). Should be merged to 2.0.3 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3799 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 961adc74..cd0e12fe 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -505,7 +505,8 @@ HSH_Deref(struct worker *w, struct object **oo) r = --o->refcnt; if (!r) VTAILQ_REMOVE(&oh->objcs, oc, list); - hsh_rush(oh); + else + hsh_rush(oh); Lck_Unlock(&oh->mtx); }