]> err.no Git - varnish/commitdiff
Remove an assert which isn't valid: we could try to LRU_Touch an
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Sep 2007 12:58:14 +0000 (12:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Sep 2007 12:58:14 +0000 (12:58 +0000)
object on deathrow.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2010 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_expire.c

index f8c238a9e7d1b9330dd40830b7af153cfeaadb6a..187bbcb970236c4665c6b3ec7aa8a17df79dcc2f 100644 (file)
@@ -83,7 +83,6 @@ EXP_Touch(struct object *o, double now)
        if (o->lru_stamp + params->lru_timeout < now) {
                LOCK(&exp_mtx); /* XXX: should be ..._TRY */
                if (o->heap_idx != lru_target) {
-                       assert(o->heap_idx != 0);
                        TAILQ_REMOVE(&exp_lru, o, deathrow);
                        TAILQ_INSERT_TAIL(&exp_lru, o, deathrow);
                        o->lru_stamp = now;