mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Merge pull request #5453 from damz/pr/aof-buffer-evict
Overhead is the allocated size of the AOF buffer, not its length
This commit is contained in:
commit
a2131f907a
@ -364,7 +364,7 @@ size_t freeMemoryGetNotCountedMemory(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (server.aof_state != AOF_OFF) {
|
if (server.aof_state != AOF_OFF) {
|
||||||
overhead += sdslen(server.aof_buf)+aofRewriteBufferSize();
|
overhead += sdsalloc(server.aof_buf)+aofRewriteBufferSize();
|
||||||
}
|
}
|
||||||
return overhead;
|
return overhead;
|
||||||
}
|
}
|
||||||
|
@ -1011,7 +1011,7 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
|
|||||||
|
|
||||||
mem = 0;
|
mem = 0;
|
||||||
if (server.aof_state != AOF_OFF) {
|
if (server.aof_state != AOF_OFF) {
|
||||||
mem += sdslen(server.aof_buf);
|
mem += sdsalloc(server.aof_buf);
|
||||||
mem += aofRewriteBufferSize();
|
mem += aofRewriteBufferSize();
|
||||||
}
|
}
|
||||||
mh->aof_buffer = mem;
|
mh->aof_buffer = mem;
|
||||||
|
Loading…
Reference in New Issue
Block a user