summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorWang Yuan <wangyuan21@baidu.com>2021-05-30 16:57:36 +0800
committerGitHub <noreply@github.com>2021-05-30 11:57:36 +0300
commit58a03eca6705378ae8d29ffcc9d59794132acb14 (patch)
tree9f09389669432d2785cfde230a46189076ee687f /src/object.c
parent53d1acd598b689b2bbc470d907b9e40e548d63f6 (diff)
downloadredis-58a03eca6705378ae8d29ffcc9d59794132acb14.tar.gz
Make full use of aofrwblock's buf (#8975)
Make aof rewrite buffer memory size more accurate, before, there may be 20% deviation with its real memory usage. The implication are both lower memory usage, and also a more accurate INFO.
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index c7b25ffd4..8e8ba7785 100644
--- a/src/object.c
+++ b/src/object.c
@@ -1011,7 +1011,7 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
mem = 0;
if (server.aof_state != AOF_OFF) {
mem += sdsZmallocSize(server.aof_buf);
- mem += aofRewriteBufferSize();
+ mem += aofRewriteBufferMemoryUsage();
}
mh->aof_buffer = mem;
mem_total+=mem;