Skip to content

Commit

Permalink
print the logs first and then save the config, in case the save fails…
Browse files Browse the repository at this point in the history
… and we lost the context

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Aug 31, 2024
1 parent 273ccbf commit b395193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1926,9 +1926,9 @@ void clusterHandleConfigEpochCollision(clusterNode *sender) {
server.cluster->currentEpoch++;
myself->configEpoch = server.cluster->currentEpoch;
clusterBroadcastPong(CLUSTER_BROADCAST_ALL);
clusterSaveConfigOrDie(1);
serverLog(LL_NOTICE, "configEpoch collision with node %.40s (%s). configEpoch set to %llu", sender->name,
sender->human_nodename, (unsigned long long)myself->configEpoch);
clusterSaveConfigOrDie(1);
}

/* -----------------------------------------------------------------------------
Expand Down

0 comments on commit b395193

Please sign in to comment.