Commit 19f33585 authored by yz1509's avatar yz1509 Committed by antirez
Browse files

avoid sentinel changes promoted_slave to be its own replica.

parent 4891612b
...@@ -4270,7 +4270,7 @@ void sentinelFailoverDetectEnd(sentinelRedisInstance *master) { ...@@ -4270,7 +4270,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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment