Cluster: log when a slave asks for failover authorization.

This commit is contained in:
antirez 2013-03-15 16:44:08 +01:00
parent 1375b0611b
commit dd091661d4

View File

@ -1402,6 +1402,7 @@ void clusterHandleSlaveFailover(void) {
* is a pending auth request that's too old, reset it. */
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_count = 0;
clusterRequestFailoverAuth();