[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    r897 - trunk/varnish-cache/bin/varnishd
From:       phk () projects ! linpro ! no (phk at projects ! linpro ! no)
Date:       2006-08-22 19:14:01
Message-ID: 20060822191401.57FF11EC97A () projects ! linpro ! no
[Download RAW message or body]

Author: phk
Date: 2006-08-22 21:14:01 +0200 (Tue, 22 Aug 2006)
New Revision: 897

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Implement "error" in vcl_hit()



Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2006-08-22 10:56:06 UTC (rev 896)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2006-08-22 19:14:01 UTC (rev 897)
@@ -323,8 +323,12 @@
 		return (0);
 	}
 
-	if (sp->handling == VCL_RET_ERROR)
-		INCOMPL();
+	if (sp->handling == VCL_RET_ERROR) {
+		HSH_Deref(sp->obj);
+		sp->obj = NULL;
+		sp->step = STP_ERROR;
+		return (0);
+	}
 
 	if (sp->handling == VCL_RET_LOOKUP)
 		INCOMPL();



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic