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

Function raxNext

app/redis-6.2.6/src/rax.c:1696–1706  ·  view source on GitHub ↗

Go to the next element in the scope of the iterator 'it'. * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */

Source from the content-addressed store, hash-verified

1694 * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is
1695 * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */
1696int raxNext(raxIterator *it) {
1697 if (!raxIteratorNextStep(it,0)) {
1698 errno = ENOMEM;
1699 return 0;
1700 }
1701 if (it->flags & RAX_ITER_EOF) {
1702 errno = 0;
1703 return 0;
1704 }
1705 return 1;
1706}
1707
1708/* Go to the previous element in the scope of the iterator 'it'.
1709 * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is

Callers 15

rewriteConfigUserOptionFunction · 0.85
scanLaterStreamListpacksFunction · 0.85
defragRadixTreeFunction · 0.85
disableTrackingFunction · 0.85
trackingInvalidateKeyRawFunction · 0.85
genRedisInfoStringFunction · 0.85
rdbSaveStreamPELFunction · 0.85

Calls 1

raxIteratorNextStepFunction · 0.85

Tested by

no test coverage detected