MEMORY: fix the missing of monitor clients buffers
This commit is contained in:
parent
f8fd6639e7
commit
ce2e0c02fc
@ -968,7 +968,7 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
|
|||||||
listRewind(server.clients,&li);
|
listRewind(server.clients,&li);
|
||||||
while((ln = listNext(&li))) {
|
while((ln = listNext(&li))) {
|
||||||
client *c = listNodeValue(ln);
|
client *c = listNodeValue(ln);
|
||||||
if (c->flags & CLIENT_SLAVE)
|
if (c->flags & CLIENT_SLAVE && !(c->flags & CLIENT_MONITOR))
|
||||||
continue;
|
continue;
|
||||||
mem += getClientOutputBufferMemoryUsage(c);
|
mem += getClientOutputBufferMemoryUsage(c);
|
||||||
mem += sdsAllocSize(c->querybuf);
|
mem += sdsAllocSize(c->querybuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user