]> err.no Git - varnish/commitdiff
polish
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Jul 2006 08:52:07 +0000 (08:52 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Jul 2006 08:52:07 +0000 (08:52 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@482 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index 1fc90c2424bf56d1b26a910abc7f00379c3220d3..76fa7820be9287797724921019054471dcfa25bd 100644 (file)
@@ -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);
 }