From 75cbee602a68a741f439c045ae9753570f6942b1 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 24 Sep 2007 12:58:14 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_expire.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.39.5