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
19f33585
Commit
19f33585
authored
Jan 07, 2020
by
yz1509
Committed by
antirez
Jan 08, 2020
Browse files
avoid sentinel changes promoted_slave to be its own replica.
parent
4891612b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
19f33585
...
@@ -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
,
...
...
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