Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ce2e0c02
Commit
ce2e0c02
authored
May 27, 2018
by
zhaozhao.zz
Browse files
MEMORY: fix the missing of monitor clients buffers
parent
f8fd6639
Changes
1
Show whitespace changes
Inline
Side-by-side
src/object.c
View file @
ce2e0c02
...
@@ -968,7 +968,7 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment