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
78a687ec
Commit
78a687ec
authored
Jun 10, 2014
by
antirez
Browse files
Cluster: log granted failover authorizations.
parent
61910a67
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
78a687ec
...
@@ -2367,6 +2367,8 @@ void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request) {
...
@@ -2367,6 +2367,8 @@ void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request) {
clusterSendFailoverAuth
(
node
);
clusterSendFailoverAuth
(
node
);
server
.
cluster
->
lastVoteEpoch
=
server
.
cluster
->
currentEpoch
;
server
.
cluster
->
lastVoteEpoch
=
server
.
cluster
->
currentEpoch
;
node
->
slaveof
->
voted_time
=
mstime
();
node
->
slaveof
->
voted_time
=
mstime
();
redisLog
(
REDIS_WARNING
,
"Failover auth granted to %.40s for epoch %llu"
,
node
->
name
,
(
unsigned
long
long
)
server
.
cluster
->
currentEpoch
);
}
}
/* This function returns the "rank" of this instance, a slave, in the context
/* This function returns the "rank" of this instance, a slave, in the context
...
...
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