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
aa578446
Commit
aa578446
authored
May 26, 2016
by
MOON_CLJ
Browse files
fix check when can't send the command to the promoted slave
parent
8c4f4d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
aa578446
...
@@ -3996,7 +3996,7 @@ void sentinelFailoverSendSlaveOfNoOne(sentinelRedisInstance *ri) {
...
@@ -3996,7 +3996,7 @@ void sentinelFailoverSendSlaveOfNoOne(sentinelRedisInstance *ri) {
/* We can't send the command to the promoted slave if it is now
/* We can't send the command to the promoted slave if it is now
* disconnected. Retry again and again with this state until the timeout
* disconnected. Retry again and again with this state until the timeout
* is reached, then abort the failover. */
* is reached, then abort the failover. */
if (ri->link->disconnected) {
if (ri->
promoted_slave->
link->disconnected) {
if (mstime() - ri->failover_state_change_time > ri->failover_timeout) {
if (mstime() - ri->failover_state_change_time > ri->failover_timeout) {
sentinelEvent(LL_WARNING,"-failover-abort-slave-timeout",ri,"%@");
sentinelEvent(LL_WARNING,"-failover-abort-slave-timeout",ri,"%@");
sentinelAbortFailover(ri);
sentinelAbortFailover(ri);
...
...
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