Mailing List Archive

r897 - trunk/varnish-cache/bin/varnishd
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();