mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Cluster: log when a slave asks for failover authorization.
This commit is contained in:
parent
1375b0611b
commit
dd091661d4
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user