MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _dictRehashStep

Function _dictRehashStep

src/util/dict.c:354–356  ·  view source on GitHub ↗

This function performs just a step of rehashing, and only if hashing has * not been paused for our hash table. When we have iterators in the * middle of a rehashing we can't mess with the two hash tables otherwise * some elements can be missed or duplicated. * * This function is called by common lookup or update operations in the * dictionary so that the hash table automatically migrates fro

Source from the content-addressed store, hash-verified

352 * dictionary so that the hash table automatically migrates from H1 to H2
353 * while it is actively used. */
354static void _dictRehashStep(dict *d) {
355 if (d->pauserehash == 0) HashTableRehash(d,1);
356}
357
358/* Return a pointer to the metadata section within the dict. */
359void *HashTableMetadata(dict *d) {

Callers 4

HashTableAddRawFunction · 0.85
dictGenericDeleteFunction · 0.85
HashTableFindFunction · 0.85

Calls 1

HashTableRehashFunction · 0.85

Tested by

no test coverage detected