MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / dictForceRehash

Function dictForceRehash

src/dict.cpp:1544–1549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1542}
1543
1544void dictForceRehash(dict *d)
1545{
1546 int16_t pauserehash;
1547 __atomic_load(&d->pauserehash, &pauserehash, __ATOMIC_RELAXED);
1548 while (pauserehash == 0 && dictIsRehashing(d)) _dictRehashStep(d);
1549}
1550
1551/* ------------------------------- Benchmark ---------------------------------*/
1552

Callers 2

createSnapshotMethod · 0.85
freeTombstoneObjectsMethod · 0.85

Calls 1

_dictRehashStepFunction · 0.85

Tested by

no test coverage detected