]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
hash: refactor hash_table_insert_node() and its callers reference
authorBaofeng Wang <baofeng.wang@dovecot.fi>
Tue, 17 May 2016 08:45:50 +0000 (11:45 +0300)
committerGitLab <gitlab@git.dovecot.net>
Fri, 3 Jun 2016 13:08:38 +0000 (16:08 +0300)
commit3b22ecd866f2503b48dc998323d183041d7a1f84
tree7003f4aef99a6d07b7d0ed2d7ea518091d10fb85
parent0531c4817898a164fea7522ac73782da99b313ef
hash: refactor hash_table_insert_node() and its callers reference

Refactor *changes* the behavior of hash_table_insert().
* hash_table_insert() will assert when a key already exsists.
And hash_table_update() remains updating value when a key already exsists.

Refactor also changes the argument list referred by all its callers:
* hash_table_insert/update/resize().
src/lib/hash.c
src/lib/hash.h