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
dd091661
Commit
dd091661
authored
Mar 15, 2013
by
antirez
Browse files
Cluster: log when a slave asks for failover authorization.
parent
1375b061
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
dd091661
...
@@ -1402,6 +1402,7 @@ void clusterHandleSlaveFailover(void) {
...
@@ -1402,6 +1402,7 @@ void clusterHandleSlaveFailover(void) {
* is a pending auth request that's too old, reset it. */
* is a pending auth request that's too old, reset it. */
if (server.cluster->failover_auth_time == 0 || auth_age > 15)
if (server.cluster->failover_auth_time == 0 || auth_age > 15)
{
{
redisLog(REDIS_WARNING,"Asking masters if I can failover...");
server.cluster->failover_auth_time = time(NULL);
server.cluster->failover_auth_time = time(NULL);
server.cluster->failover_auth_count = 0;
server.cluster->failover_auth_count = 0;
clusterRequestFailoverAuth();
clusterRequestFailoverAuth();
...
...
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