1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 14:51:04 +00:00

Cluster: log offset when announcing the failover election delay.

This commit is contained in:
antirez 2014-01-29 17:16:10 +01:00
parent 940531e9b7
commit e2b59621a8

@ -2011,9 +2011,11 @@ void clusterHandleSlaveFailover(void) {
server.cluster->failover_auth_time += server.cluster->failover_auth_time +=
server.cluster->failover_auth_rank * 1000; server.cluster->failover_auth_rank * 1000;
redisLog(REDIS_WARNING, redisLog(REDIS_WARNING,
"Start of election delayed for %lld milliseconds (rank is #%d).", "Start of election delayed for %lld milliseconds "
"(rank #%d, offset %lld).",
server.cluster->failover_auth_time - mstime(), server.cluster->failover_auth_time - mstime(),
server.cluster->failover_auth_rank); server.cluster->failover_auth_rank,
replicationGetSlaveOffset());
return; return;
} }