Commit 10b229b0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add an assert, just in case.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@612 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent fd26a7f0
......@@ -123,6 +123,12 @@ exp_prefetch(void *arg)
continue;
}
binheap_delete(exp_heap, o->heap_idx);
{
struct object *o2;
o2 = binheap_root(exp_heap);
if (o2 != NULL)
assert(o2->ttl >= o->ttl);
}
AZ(pthread_mutex_unlock(&exp_mtx));
VSL(SLT_ExpPick, 0, "%u", o->xid);
......
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