From 70dd20459bda33f1004247f3a98eb8d9521ac1b4 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 18 Jul 2006 12:28:32 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_hash.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5