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

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Jan 19 15:28:09 CET 2009


Author: tfheen
Date: 2009-01-19 15:28:07 +0100 (Mon, 19 Jan 2009)
New Revision: 3536

Modified:
   branches/2.0/varnish-cache/bin/varnishd/cache_center.c
Log:
Merge r3386:

Implement restart in vcl_hit.

Fixes #365



Modified: branches/2.0/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/cache_center.c	2009-01-19 14:24:03 UTC (rev 3535)
+++ branches/2.0/varnish-cache/bin/varnishd/cache_center.c	2009-01-19 14:28:07 UTC (rev 3536)
@@ -548,7 +548,9 @@
 		sp->step = STP_ERROR;
 		return (0);
 	case VCL_RET_RESTART:
-		INCOMPL();
+		sp->director = NULL;
+		sp->restarts++;
+		sp->step = STP_RECV;
 		return (0);
 	default:
 		WRONG("Illegal action in vcl_hit{}");



More information about the varnish-commit mailing list