Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
18c26760
Commit
18c26760
authored
Jan 07, 2020
by
yz1509
Browse files
avoid sentinel changes promoted_slave to be its own replica.
parent
0af467d1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
18c26760
...
@@ -4308,7 +4308,7 @@ void sentinelFailoverDetectEnd(sentinelRedisInstance *master) {
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment