|
* src/vmod_dict.c (entry): Link into a double-linked list.
(entry_append, entry_remove): New functions.
(max_coll): New static.
(locker_t): New type.
(locker_init,locker_rlock,locker_wlock)
(locker_runlock,locker_wunlock): New functions.
(load_entries): Use syslog for diagnostics. Abort if unable to
open the file. Fix minor memory leak.
(rehash,fill_table): New functions.
(dict_event): Handle VCL_EVENT_DISCARD.
(vmod_load): Change signature.
(vmod_ci,vmod_collisions): New functions.
(vmod_clear): New function.
* src/vmod_dict.vcc: Update.
* tests/ci.at: Accomodate the above changes.
* tests/cs.at: Likewise.
|