From: phk Date: Wed, 2 Aug 2006 17:45:02 +0000 (+0000) Subject: Enter pass mode through the front door. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd365f2729e015105d08ccc640ce3a21a8b73b1b;p=varnish Enter pass mode through the front door. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@607 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 05876c1c..ce9a9a20 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -261,7 +261,6 @@ cnt_hit(struct sess *sp) if (sp->handling == VCL_RET_PASS) { HSH_Deref(sp->obj); sp->obj = NULL; - PassSession(sp); sp->step = STP_PASS; return (0); } @@ -396,9 +395,8 @@ cnt_miss(struct sess *sp) sp->obj->cacheable = 0; HSH_Unbusy(sp->obj); HSH_Deref(sp->obj); - sp->obj = 0; - PassSession(sp); - sp->step = STP_PASSBODY; + sp->obj = NULL; + sp->step = STP_PASS; return (0); } if (sp->handling == VCL_RET_LOOKUP)