r492 - trunk/varnish-cache/lib/libvarnish
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jul 18 14:46:23 CEST 2006
Author: phk
Date: 2006-07-18 14:46:23 +0200 (Tue, 18 Jul 2006)
New Revision: 492
Modified:
trunk/varnish-cache/lib/libvarnish/binary_heap.c
Log:
Set the index of deleted elements to zero
Modified: trunk/varnish-cache/lib/libvarnish/binary_heap.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/binary_heap.c 2006-07-18 12:40:17 UTC (rev 491)
+++ trunk/varnish-cache/lib/libvarnish/binary_heap.c 2006-07-18 12:46:23 UTC (rev 492)
@@ -176,6 +176,8 @@
assert(bh->magic == BINHEAP_MAGIC);
assert(bh->next > ROOT_IDX);
assert(idx < bh->next);
+ if (bh->update != NULL)
+ bh->update(bh->priv, bh->array[idx], 0);
if (idx == --bh->next)
return;
bh->array[idx] = bh->array[bh->next];
More information about the varnish-commit
mailing list