Commit 23f4e9f0 authored by antirez's avatar antirez
Browse files

Don't log MONITOR clients as disconnecting slaves.

parent 40377fa5
...@@ -667,7 +667,7 @@ void freeClient(redisClient *c) { ...@@ -667,7 +667,7 @@ void freeClient(redisClient *c) {
} }
/* Log link disconnection with slave */ /* Log link disconnection with slave */
if (c->flags & REDIS_SLAVE) { if ((c->flags & REDIS_SLAVE) && !(c->flags & REDIS_MONITOR)) {
char ip[REDIS_IP_STR_LEN]; char ip[REDIS_IP_STR_LEN];
if (anetPeerToString(c->fd,ip,sizeof(ip),NULL) != -1) { if (anetPeerToString(c->fd,ip,sizeof(ip),NULL) != -1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment