mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-04 00:05:59 +00:00
lib: fix for dynamically grown hashes
Fixes commit 97c84db00c (hash: dynamically grow hash table). The
no_expand field it's not initialized and could make the hashes to
never grow the table index.
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Acked-by: Feng Lu <lu.feng@6wind.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
4d474fa329
commit
6d729eeac9
@ -36,6 +36,7 @@ hash_create_size (unsigned int size, unsigned int (*hash_key) (void *),
|
||||
hash->index = XCALLOC (MTYPE_HASH_INDEX,
|
||||
sizeof (struct hash_backet *) * size);
|
||||
hash->size = size;
|
||||
hash->no_expand = 0;
|
||||
hash->hash_key = hash_key;
|
||||
hash->hash_cmp = hash_cmp;
|
||||
hash->count = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user