summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryz1509 <pro-765@qq.com>2020-01-07 10:29:54 +0800
committerantirez <antirez@gmail.com>2020-01-08 12:31:23 +0100
commit19f335856489b9fcf1d8cc9cfb285c3048e45c91 (patch)
treecf565313b8727f84938b77c3c02782ae6e8cdd3d
parent4891612bb5164bdf9bc2d931472aaa13174fc8c3 (diff)
downloadredis-19f335856489b9fcf1d8cc9cfb285c3048e45c91.tar.gz
avoid sentinel changes promoted_slave to be its own replica.
-rw-r--r--src/sentinel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index adff9d4fa..1d67a440a 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -4270,7 +4270,7 @@ void sentinelFailoverDetectEnd(sentinelRedisInstance *master) {
sentinelRedisInstance *slave = dictGetVal(de);
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;
retval = sentinelSendSlaveOf(slave,