]> err.no Git - varnish/commitdiff
Implement "error" in vcl_hit()
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Aug 2006 19:14:01 +0000 (19:14 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Aug 2006 19:14:01 +0000 (19:14 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@897 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index b4468a48240ff0837d221130eb7903e94402debf..984e3e502feb9d274ba40d8a67159ce44c2d6194 100644 (file)
@@ -323,8 +323,12 @@ cnt_hit(struct sess *sp)
                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();