r905 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Aug 23 13:27:54 CEST 2006


Author: phk
Date: 2006-08-23 13:27:54 +0200 (Wed, 23 Aug 2006)
New Revision: 905

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Implement error in miss also


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2006-08-23 07:32:19 UTC (rev 904)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2006-08-23 11:27:54 UTC (rev 905)
@@ -450,8 +450,14 @@
 {
 
 	VCL_miss_method(sp);
-	if (sp->handling == VCL_RET_ERROR)
-		INCOMPL();
+	if (sp->handling == VCL_RET_ERROR) {
+		sp->obj->cacheable = 0;
+		HSH_Unbusy(sp->obj);
+		HSH_Deref(sp->obj);
+		sp->obj = NULL;
+		sp->step = STP_ERROR;
+		return (0);
+	}
 	if (sp->handling == VCL_RET_PASS) {
 		sp->obj->cacheable = 0;
 		HSH_Unbusy(sp->obj);




More information about the varnish-commit mailing list