Commit dd091661 authored by antirez's avatar antirez
Browse files

Cluster: log when a slave asks for failover authorization.

parent 1375b061
...@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment