mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Sentinel: fix conditional to only affect slaves with wrong master.
This commit is contained in:
parent
dfbd9c5aeb
commit
c0d7229364
@ -1626,6 +1626,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) {
|
||||
|
||||
/* Handle slaves replicating to a different master address. */
|
||||
if ((ri->flags & SRI_SLAVE) && !sentinel.tilt &&
|
||||
role == SRI_SLAVE &&
|
||||
(ri->slave_master_port != ri->master->addr->port ||
|
||||
strcasecmp(ri->slave_master_host,ri->master->addr->ip)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user