From 7bbeae904fb8c7a81d77b6f9c1ea730d710f413f Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 2 Aug 2006 20:59:46 +0000 Subject: [PATCH] Add an assert, just in case. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@612 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_expire.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_expire.c b/varnish-cache/bin/varnishd/cache_expire.c index 8ec22f49..3a42da9f 100644 --- a/varnish-cache/bin/varnishd/cache_expire.c +++ b/varnish-cache/bin/varnishd/cache_expire.c @@ -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); -- 2.39.5