diff --git a/src/sentinel.c b/src/sentinel.c index a1660b0b..f225dc76 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -1628,6 +1628,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))) {