]> err.no Git - varnish/commitdiff
Don't try to rush waiting sessions of refcount is zero, there cannot be
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Feb 2009 18:05:34 +0000 (18:05 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Feb 2009 18:05:34 +0000 (18:05 +0000)
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

index 961adc7458cb7328b119270551e19a0d3a6998d2..cd0e12feac8a650bbf95983b29b8e34f5ca338c1 100644 (file)
@@ -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);
        }