]> err.no Git - varnish/commitdiff
Assert that object is busy when we call unbusy
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Jul 2006 12:28:32 +0000 (12:28 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Jul 2006 12:28:32 +0000 (12:28 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@489 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index 7a561389128e65d9a0b13dc3b178bd6f372367a6..be3503675d7c9c7fac65815c3cbe26c6997a73e4 100644 (file)
@@ -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);