Call with resize true when dictionary has DICT_OPTION_INDEX_HASHTABLE (#17316)
Call with resize true when dict has DICT_OPTION_INDEX_HASHTABLE
Stelios Fragkakis committed
Apr 8, 2024 at 19:57 UTC
3bdb1aadcfe981ac75b5bda9926a6cdbb6f2aef3
1 file changed
+1
-1
src/libnetdata/dictionary/dictionary-hashtable.h
+1
-1
@@ -95,7 +95,7 @@ static inline DICTIONARY_ITEM *hashtable_get_hashtable(DICTIONARY *dict, const c
95
key[name_len] = '\0';
96
97
XXH64_hash_t hash = XXH3_64bits(name, name_len);
98
- SIMPLE_HASHTABLE_SLOT_DICTIONARY *sl = simple_hashtable_get_slot_DICTIONARY(ht, hash, key, false);
98
+ SIMPLE_HASHTABLE_SLOT_DICTIONARY *sl = simple_hashtable_get_slot_DICTIONARY(ht, hash, key, true);
99
return SIMPLE_HASHTABLE_SLOT_DATA(sl);
100
}
101