]> err.no Git - varnish/commitdiff
Add an assert, just in case.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 20:59:46 +0000 (20:59 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 20:59:46 +0000 (20:59 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@612 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_expire.c

index 8ec22f4963d7b74f9cbda598c23778d3033406f5..3a42da9ff424d9e1471c5c8c6acc27ae87809699 100644 (file)
@@ -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);