MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dictReleaseIterator

Function dictReleaseIterator

app/redis-6.2.6/src/dict.c:624–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624void dictReleaseIterator(dictIterator *iter)
625{
626 if (!(iter->index == -1 && iter->table == 0)) {
627 if (iter->safe)
628 dictResumeRehashing(iter->d);
629 else
630 assert(iter->fingerprint == dictFingerprint(iter->d));
631 }
632 zfree(iter);
633}
634
635/* Return a random entry from the hash table. Useful to
636 * implement randomized algorithms */

Calls 2

dictFingerprintFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected