r3817 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Feb 23 16:01:28 CET 2009


Author: tfheen
Date: 2009-02-23 16:01:27 +0100 (Mon, 23 Feb 2009)
New Revision: 3817

Modified:
   branches/2.0/varnish-cache/bin/varnishd/cache_hash.c
Log:
Merge r3799: Don't rush waiting sessions always

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: branches/2.0/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/cache_hash.c	2009-02-23 14:51:43 UTC (rev 3816)
+++ branches/2.0/varnish-cache/bin/varnishd/cache_hash.c	2009-02-23 15:01:27 UTC (rev 3817)
@@ -435,7 +435,8 @@
 	assert(o->refcnt > 0);
 	r = --o->refcnt;
 	if (oh != NULL)
-		hsh_rush(oh);
+		else
+			hsh_rush(oh);
 	if (oh != NULL) {
 		if (!r)
 			VTAILQ_REMOVE(&oh->objects, o, list);



More information about the varnish-commit mailing list