]> err.no Git - varnish/commitdiff
Merge r3386:
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 19 Jan 2009 14:28:07 +0000 (14:28 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 19 Jan 2009 14:28:07 +0000 (14:28 +0000)
Implement restart in vcl_hit.

Fixes #365

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3536 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index 6ed0afa4831bf85b13d639d9a2364e2c2e790533..52878f91f83c855463de782532ee31d1c0ec6246 100644 (file)
@@ -548,7 +548,9 @@ cnt_hit(struct sess *sp)
                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{}");