diff options
author | yz1509 <pro-765@qq.com> | 2020-01-07 10:29:54 +0800 |
---|---|---|
committer | yz1509 <pro-765@qq.com> | 2020-01-07 10:29:54 +0800 |
commit | 18c26760846fa51aee4ad5d6c4a6d06c64d7269e (patch) | |
tree | df7df41149ee023ace953e28c4b6fe143743921e | |
parent | 0af467d18f9d12b137af3b709c0af579c29d8414 (diff) | |
download | redis-18c26760846fa51aee4ad5d6c4a6d06c64d7269e.tar.gz |
avoid sentinel changes promoted_slave to be its own replica.
-rw-r--r-- | src/sentinel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c index 10117252d..10c003d03 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -4308,7 +4308,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, |