diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2018-05-27 16:34:58 +0800 |
---|---|---|
committer | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2018-05-27 16:34:58 +0800 |
commit | ce2e0c02fc67658e3e891ff4f732a17db3adfb96 (patch) | |
tree | 1f215a64d50f485e8cddf44c5585e3df9834665e /src/object.c | |
parent | f8fd6639e79f9fbd13b87a101135d4f141bfde68 (diff) | |
download | redis-ce2e0c02fc67658e3e891ff4f732a17db3adfb96.tar.gz |
MEMORY: fix the missing of monitor clients buffers
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 2 |
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); |