From 23f4e9f0d91ee5845a9edab298c4b4a3c00d5f07 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 25 Jan 2014 11:53:53 +0100 Subject: [PATCH] Don't log MONITOR clients as disconnecting slaves. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index bf16559a..82799ab1 100644 --- a/src/networking.c +++ b/src/networking.c @@ -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) {