diff options
author | Wang Yuan <wangyuan21@baidu.com> | 2021-05-30 16:57:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-30 11:57:36 +0300 |
commit | 58a03eca6705378ae8d29ffcc9d59794132acb14 (patch) | |
tree | 9f09389669432d2785cfde230a46189076ee687f /src/evict.c | |
parent | 53d1acd598b689b2bbc470d907b9e40e548d63f6 (diff) | |
download | redis-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/evict.c')
-rw-r--r-- | src/evict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evict.c b/src/evict.c index 2f94f5942..227e15a8d 100644 --- a/src/evict.c +++ b/src/evict.c @@ -342,7 +342,7 @@ size_t freeMemoryGetNotCountedMemory(void) { } } if (server.aof_state != AOF_OFF) { - overhead += sdsAllocSize(server.aof_buf)+aofRewriteBufferSize(); + overhead += sdsAllocSize(server.aof_buf)+aofRewriteBufferMemoryUsage(); } return overhead; } |