Commit ea78a41a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Actually, we cannot touch objects on deathrow, so just ignore

any object with heap_idx == 0.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2011 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4b0080e1
......@@ -82,7 +82,7 @@ EXP_Touch(struct object *o, double now)
CHECK_OBJ_NOTNULL(o, OBJECT_MAGIC);
if (o->lru_stamp + params->lru_timeout < now) {
LOCK(&exp_mtx); /* XXX: should be ..._TRY */
if (o->heap_idx != lru_target) {
if (o->heap_idx != lru_target && o->heap_idx != 0) {
TAILQ_REMOVE(&exp_lru, o, deathrow);
TAILQ_INSERT_TAIL(&exp_lru, o, deathrow);
o->lru_stamp = now;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment