r482 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jul 18 10:52:07 CEST 2006
Author: phk
Date: 2006-07-18 10:52:07 +0200 (Tue, 18 Jul 2006)
New Revision: 482
Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
polish
Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2006-07-18 08:51:42 UTC (rev 481)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2006-07-18 08:52:07 UTC (rev 482)
@@ -295,7 +295,8 @@
static int
cnt_lookup(struct sess *sp)
{
- sp->obj = NULL;
+
+ assert(sp->obj == NULL);
sp->step = STP_LOOKUP2;
return (0);
}
@@ -307,7 +308,7 @@
/*
* 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 @@
VSL(SLT_Hit, sp->fd, "%u", sp->obj->xid);
}
sp->step = STP_HIT;
-HERE();
return (0);
}
More information about the varnish-commit
mailing list