r3181 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 12 09:36:21 CEST 2008


Author: phk
Date: 2008-09-12 09:36:21 +0200 (Fri, 12 Sep 2008)
New Revision: 3181

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Initialize obj->entered to NAN so our asserts will detect if it is not
properly set.



Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2008-09-12 07:32:04 UTC (rev 3180)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2008-09-12 07:36:21 UTC (rev 3181)
@@ -115,6 +115,7 @@
 		w->nobj->busy = 1;
 		w->nobj->refcnt = 1;
 		w->nobj->grace = NAN;
+		w->nobj->entered = NAN;
 		VTAILQ_INIT(&w->nobj->store);
 		VTAILQ_INIT(&w->nobj->esibits);
 		VSL_stats->n_object++;




More information about the varnish-commit mailing list