Don't log MONITOR clients as disconnecting slaves.

This commit is contained in:
antirez 2014-01-25 11:53:53 +01:00
parent 43503ae5d6
commit ecfefde760

View File

@ -650,7 +650,7 @@ void freeClient(redisClient *c) {
}
/* 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];
if (anetPeerToString(c->fd,ip,sizeof(ip),NULL) != -1) {