mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 02:01:21 +00:00
Don't log MONITOR clients as disconnecting slaves.
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user