r2544 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 29 10:38:49 CET 2008


Author: phk
Date: 2008-02-29 10:38:49 +0100 (Fri, 29 Feb 2008)
New Revision: 2544

Modified:
   trunk/varnish-cache/bin/varnishd/cache_expire.c
Log:
Workaround: ignore uncached objects in EXP_Touch()


Modified: trunk/varnish-cache/bin/varnishd/cache_expire.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_expire.c	2008-02-26 11:05:54 UTC (rev 2543)
+++ trunk/varnish-cache/bin/varnishd/cache_expire.c	2008-02-29 09:38:49 UTC (rev 2544)
@@ -198,6 +198,8 @@
 
 	CHECK_OBJ_NOTNULL(o, OBJECT_MAGIC);
 	oe = o->objexp;
+	if (oe == NULL)
+		return;
 	CHECK_OBJ_NOTNULL(oe, OBJEXP_MAGIC);
 	if (oe->lru_stamp + params->lru_timeout > now)
 		return;




More information about the varnish-commit mailing list