r3799 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 20 19:05:35 CET 2009


Author: phk
Date: 2009-02-20 19:05:34 +0100 (Fri, 20 Feb 2009)
New Revision: 3799

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
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



Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2009-02-20 18:00:06 UTC (rev 3798)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2009-02-20 18:05:34 UTC (rev 3799)
@@ -505,7 +505,8 @@
 		r = --o->refcnt;
 		if (!r)
 			VTAILQ_REMOVE(&oh->objcs, oc, list);
-		hsh_rush(oh);
+		else
+			hsh_rush(oh);
 		Lck_Unlock(&oh->mtx);
 	}
 



More information about the varnish-commit mailing list