allow min_heap_erase to be called on removed members; from liusifan

svn:r849
This commit is contained in:
Niels Provos 2008-06-12 14:43:35 +00:00
parent c584741baf
commit a6ce520cfb
2 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ Changes in current version:
o support for selecting event backends by their features, and for querying the features of a backend. o support for selecting event backends by their features, and for querying the features of a backend.
o change failing behavior of event_base_new_with_config: if a config is provided and no backend is selected, return NULL instead of aborting. o change failing behavior of event_base_new_with_config: if a config is provided and no backend is selected, return NULL instead of aborting.
o deliver partial data to request callbacks when chunked callback is set even if there is no chunking on the http level; allows cancelation of requests from within the chunked callback; from Scott Lamb. o deliver partial data to request callbacks when chunked callback is set even if there is no chunking on the http level; allows cancelation of requests from within the chunked callback; from Scott Lamb.
o allow min_heap_erase to be called on removed members; from liusifan.
Changes in 1.4.0: Changes in 1.4.0:
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr. o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.

View File

@ -75,8 +75,8 @@ struct event* min_heap_pop(min_heap_t* s)
if(s->n) if(s->n)
{ {
struct event* e = *s->p; struct event* e = *s->p;
e->min_heap_idx = -1;
min_heap_shift_down_(s, 0u, s->p[--s->n]); min_heap_shift_down_(s, 0u, s->p[--s->n]);
e->min_heap_idx = -1;
return e; return e;
} }
return 0; return 0;