From 573665fd7fd0cd6e7a19f0d4d29c33b8cd07321f Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 20 Feb 2009 18:05:34 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5