From: phk Date: Tue, 18 Jul 2006 12:28:32 +0000 (+0000) Subject: Assert that object is busy when we call unbusy X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70dd20459bda33f1004247f3a98eb8d9521ac1b4;p=varnish Assert that object is busy when we call unbusy git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@489 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 7a561389..be350367 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -128,6 +128,7 @@ HSH_Unbusy(struct object *o) struct sess *sp; assert(o != NULL); + assert(o->busy); assert(o->refcnt > 0); if (o->cacheable) EXP_Insert(o);