]> err.no Git - varnish/commitdiff
Missing handling of sp->restarts and sp->director.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 17 Apr 2008 20:08:49 +0000 (20:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 17 Apr 2008 20:08:49 +0000 (20:08 +0000)
Spotted by: "postwait"

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2631 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index a1546282474fe726bf2377c06cfd8dd27da20eff..2ae2dcbc1cccdabb4b3fae7ee8b46c50727120e0 100644 (file)
@@ -170,6 +170,7 @@ cnt_deliver(struct sess *sp)
        }
 
        sp->director = NULL;
+       sp->restarts = 0;
        sp->backend = NULL;             /*
                                         * XXX: we may want to leave this
                                         * behind to hint directors ?
@@ -205,6 +206,7 @@ cnt_done(struct sess *sp)
        AZ(sp->obj);
        AZ(sp->bereq);
        sp->director = NULL;
+       sp->restarts = 0;
        sp->backend = NULL;             /*
                                         * XXX: we may want to leave this
                                         * behind to hint directors ?
@@ -364,6 +366,7 @@ cnt_fetch(struct sess *sp)
                if (sp->handling == VCL_RET_ERROR)
                        sp->step = STP_ERROR;
                else {
+                       sp->director = NULL;
                        sp->restarts++;
                        sp->step = STP_RECV;
                }