From: phk Date: Tue, 18 Jul 2006 08:52:07 +0000 (+0000) Subject: polish X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5830e3c256f70a5d76602eaaeb7382e05b91fd0f;p=varnish polish git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@482 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 1fc90c24..76fa7820 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -295,7 +295,8 @@ DOT lookup2 -> MISS [label="miss", style=bold] static int cnt_lookup(struct sess *sp) { - sp->obj = NULL; + + assert(sp->obj == NULL); sp->step = STP_LOOKUP2; return (0); } @@ -307,7 +308,7 @@ cnt_lookup2(struct sess *sp) /* * We don't assign to sp->obj directly because it is used - * to store state when we encounter a busy object. + * to cache state when we encounter a busy object. */ o = HSH_Lookup(sp); @@ -336,7 +337,6 @@ cnt_lookup2(struct sess *sp) VSL(SLT_Hit, sp->fd, "%u", sp->obj->xid); } sp->step = STP_HIT; -HERE(); return (0); }