summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-05-27 16:34:58 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-05-27 16:34:58 +0800
commitce2e0c02fc67658e3e891ff4f732a17db3adfb96 (patch)
tree1f215a64d50f485e8cddf44c5585e3df9834665e /src/object.c
parentf8fd6639e79f9fbd13b87a101135d4f141bfde68 (diff)
downloadredis-ce2e0c02fc67658e3e891ff4f732a17db3adfb96.tar.gz
MEMORY: fix the missing of monitor clients buffers
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 82b82632b..214edda5c 100644
--- a/src/object.c
+++ b/src/object.c
@@ -968,7 +968,7 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
listRewind(server.clients,&li);
while((ln = listNext(&li))) {
client *c = listNodeValue(ln);
- if (c->flags & CLIENT_SLAVE)
+ if (c->flags & CLIENT_SLAVE && !(c->flags & CLIENT_MONITOR))
continue;
mem += getClientOutputBufferMemoryUsage(c);
mem += sdsAllocSize(c->querybuf);