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
| 352 | * dictionary so that the hash table automatically migrates from H1 to H2 |
| 353 | * while it is actively used. */ |
| 354 | static 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. */ |
| 359 | void *HashTableMetadata(dict *d) { |
no test coverage detected