mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 05:22:13 +00:00
Don't log MONITOR clients as disconnecting slaves.
This commit is contained in:
parent
43503ae5d6
commit
ecfefde760
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user