avoid sentinel changes promoted_slave to be its own replica.
This commit is contained in:
parent
0af467d18f
commit
18c2676084
@ -4308,7 +4308,7 @@ void sentinelFailoverDetectEnd(sentinelRedisInstance *master) {
|
|||||||
sentinelRedisInstance *slave = dictGetVal(de);
|
sentinelRedisInstance *slave = dictGetVal(de);
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
if (slave->flags & (SRI_RECONF_DONE|SRI_RECONF_SENT)) continue;
|
if (slave->flags & (SRI_PROMOTED|SRI_RECONF_DONE|SRI_RECONF_SENT)) continue;
|
||||||
if (slave->link->disconnected) continue;
|
if (slave->link->disconnected) continue;
|
||||||
|
|
||||||
retval = sentinelSendSlaveOf(slave,
|
retval = sentinelSendSlaveOf(slave,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user