From: phk Date: Mon, 24 Sep 2007 12:58:14 +0000 (+0000) Subject: Remove an assert which isn't valid: we could try to LRU_Touch an X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75cbee602a68a741f439c045ae9753570f6942b1;p=varnish Remove an assert which isn't valid: we could try to LRU_Touch an object on deathrow. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2010 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_expire.c b/varnish-cache/bin/varnishd/cache_expire.c index f8c238a9..187bbcb9 100644 --- a/varnish-cache/bin/varnishd/cache_expire.c +++ b/varnish-cache/bin/varnishd/cache_expire.c @@ -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;