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

Function dictReleaseIterator

src/dict.cpp:980–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978}
979
980void dictReleaseIterator(dictIterator *iter)
981{
982 if (!(iter->index == -1 && iter->table == 0)) {
983 if (iter->safe)
984 dictResumeRehashing(iter->d);
985 else
986 assert(iter->fingerprint == dictFingerprint(iter->d));
987 }
988 zfree(iter);
989}
990
991/* Return a random entry from the hash table. Useful to
992 * implement randomized algorithms */

Callers 15

iterateMethod · 0.70
storeDatabaseMethod · 0.70
processChangesMethod · 0.70
processChangesAsyncMethod · 0.70
commitChangesMethod · 0.70
pubsubPublishMessageFunction · 0.70
pubsubCommandFunction · 0.70
latencyResetEventFunction · 0.70
createLatencyReportFunction · 0.70

Calls 2

dictFingerprintFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected