From 7ce57f3b34bd9bb58747693c805c5594a18ddd7b Mon Sep 17 00:00:00 2001 From: Binbin Date: Fri, 8 Nov 2024 14:06:17 +0800 Subject: [PATCH] Update the comment Signed-off-by: Binbin --- src/cluster_legacy.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 0a469d0ce1..1c510ee712 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -3142,11 +3142,11 @@ int clusterProcessPacket(clusterLink *link) { * with an epoch smaller than or equal to the incoming claim. This * allows us to start a new election as soon as possible. */ server.cluster->failover_auth_time = 0; - serverLog(LL_WARNING, - "Failover election in progress for epoch %llu, but received a claim from node %.40s (%s) " - "with an equal or higher epoch %llu. Resetting the election since we cannot win.", - (unsigned long long)server.cluster->failover_auth_epoch, sender->name, sender->human_nodename, - (unsigned long long)sender->configEpoch); + serverLog(LL_WARNING, "Failover election in progress for epoch %llu, but received a claim from " + "node %.40s (%s) with an equal or higher epoch %llu. Resetting the election " + "since we cannot win an election in the past.", + (unsigned long long)server.cluster->failover_auth_epoch, + sender->name, sender->human_nodename, (unsigned long long)sender->configEpoch); /* Maybe we could start a new election, set a flag here to make sure * we check as soon as possible, instead of waiting for a cron. */ clusterDoBeforeSleep(CLUSTER_TODO_HANDLE_FAILOVER);