mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Don't log MONITOR clients as disconnecting slaves.
This commit is contained in:
parent
40377fa522
commit
23f4e9f0d9
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user