Mailing List Archive

r2631 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2008-04-17 22:08:49 +0200 (Thu, 17 Apr 2008)
New Revision: 2631

Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Missing handling of sp->restarts and sp->director.

Spotted by: "postwait"


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2008-04-16 07:58:43 UTC (rev 2630)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2008-04-17 20:08:49 UTC (rev 2631)
@@ -170,6 +170,7 @@
}

sp->director = NULL;
+ sp->restarts = 0;
sp->backend = NULL; /*
* XXX: we may want to leave this
* behind to hint directors ?
@@ -205,6 +206,7 @@
AZ(sp->obj);
AZ(sp->bereq);
sp->director = NULL;
+ sp->restarts = 0;
sp->backend = NULL; /*
* XXX: we may want to leave this
* behind to hint directors ?
@@ -364,6 +366,7 @@
if (sp->handling == VCL_RET_ERROR)
sp->step = STP_ERROR;
else {
+ sp->director = NULL;
sp->restarts++;
sp->step = STP_RECV;
}