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

Function aofRewriteBufferSize

app/redis-6.2.6/src/aof.c:79–90  ·  view source on GitHub ↗

Return the current size of the AOF rewrite buffer. */

Source from the content-addressed store, hash-verified

77
78/* Return the current size of the AOF rewrite buffer. */
79unsigned long aofRewriteBufferSize(void) {
80 listNode *ln;
81 listIter li;
82 unsigned long size = 0;
83
84 listRewind(server.aof_rewrite_buf_blocks,&li);
85 while((ln = listNext(&li))) {
86 aofrwblock *block = listNodeValue(ln);
87 size += block->used;
88 }
89 return size;
90}
91
92/* Event handler used to send data to the child process doing the AOF
93 * rewrite. We send pieces of our AOF differences buffer so that the final

Callers 5

genRedisInfoStringFunction · 0.85
getMemoryOverheadDataFunction · 0.85
aofRewriteBufferAppendFunction · 0.85

Calls 2

listRewindFunction · 0.85
listNextFunction · 0.85

Tested by

no test coverage detected