Skip to content

Commit

Permalink
Update the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Nov 8, 2024
1 parent a91dc59 commit 7ce57f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ce57f3

Please sign in to comment.