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

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Jan 18 15:58:10 CET 2010


Author: tfheen
Date: 2010-01-18 15:58:09 +0100 (Mon, 18 Jan 2010)
New Revision: 4468

Modified:
   branches/2.0/varnish-cache/bin/varnishd/cache_center.c
Log:
Avoid repeated pointless rushing

This should address #610

Modified: branches/2.0/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/cache_center.c	2010-01-18 13:30:47 UTC (rev 4467)
+++ branches/2.0/varnish-cache/bin/varnishd/cache_center.c	2010-01-18 14:58:09 UTC (rev 4468)
@@ -594,7 +594,7 @@
 	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
 	CHECK_OBJ_NOTNULL(sp->vcl, VCL_CONF_MAGIC);
 
-	if (sp->obj == NULL) {
+	if (sp->objhead == NULL) {
 		HSH_Prepare(sp, sp->vcl->nhashcount);
 		VCL_hash_method(sp);
 		assert(sp->handling == VCL_RET_HASH);



More information about the varnish-commit mailing list