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

Function quicklistReleaseIterator

app/redis-6.2.6/src/quicklist.c:1113–1118  ·  view source on GitHub ↗

Release iterator. * If we still have a valid current node, then re-encode current node. */

Source from the content-addressed store, hash-verified

1111/* Release iterator.
1112 * If we still have a valid current node, then re-encode current node. */
1113void quicklistReleaseIterator(quicklistIter *iter) {
1114 if (iter->current)
1115 quicklistCompress(iter->quicklist, iter->current);
1116
1117 zfree(iter);
1118}
1119
1120/* Get next element in iterator.
1121 *

Callers 3

rewriteListObjectFunction · 0.85
_itrprintrFunction · 0.85
quicklistTestFunction · 0.85

Calls 1

zfreeFunction · 0.70

Tested by

no test coverage detected