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
e2b59621
Commit
e2b59621
authored
Jan 29, 2014
by
antirez
Browse files
Cluster: log offset when announcing the failover election delay.
parent
940531e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
e2b59621
...
...
@@ -2011,9 +2011,11 @@ void clusterHandleSlaveFailover(void) {
server
.
cluster
->
failover_auth_time
+=
server
.
cluster
->
failover_auth_rank
*
1000
;
redisLog
(
REDIS_WARNING
,
"Start of election delayed for %lld milliseconds (rank is #%d)."
,
"Start of election delayed for %lld milliseconds "
"(rank #%d, offset %lld)."
,
server
.
cluster
->
failover_auth_time
-
mstime
(),
server
.
cluster
->
failover_auth_rank
);
server
.
cluster
->
failover_auth_rank
,
replicationGetSlaveOffset
());
return
;
}
...
...
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