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
372cbc37
Unverified
Commit
372cbc37
authored
Mar 13, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Mar 13, 2019
Browse files
Merge pull request #5884 from chendq8/cluster_failover
Reduce 100ms of cluster failover time on Manual mode
parents
46a8cb2d
a16da792
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
372cbc37
...
@@ -3031,6 +3031,7 @@ void clusterHandleSlaveFailover(void) {
...
@@ -3031,6 +3031,7 @@ void clusterHandleSlaveFailover(void) {
if
(
server
.
cluster
->
mf_end
)
{
if
(
server
.
cluster
->
mf_end
)
{
server
.
cluster
->
failover_auth_time
=
mstime
();
server
.
cluster
->
failover_auth_time
=
mstime
();
server
.
cluster
->
failover_auth_rank
=
0
;
server
.
cluster
->
failover_auth_rank
=
0
;
clusterDoBeforeSleep
(
CLUSTER_TODO_HANDLE_FAILOVER
);
}
}
serverLog
(
LL_WARNING
,
serverLog
(
LL_WARNING
,
"Start of election delayed for %lld milliseconds "
"Start of election delayed for %lld milliseconds "
...
...
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