Don't log MONITOR clients as disconnecting slaves.

This commit is contained in:
antirez 2014-01-25 11:53:53 +01:00
parent 40377fa522
commit 23f4e9f0d9

View File

@ -667,7 +667,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) {