From b395193f3c3bf2c62ec7d894a8152d2cc36a59a6 Mon Sep 17 00:00:00 2001 From: Binbin Date: Sat, 31 Aug 2024 19:42:23 +0800 Subject: [PATCH] print the logs first and then save the config, in case the save fails and we lost the context Signed-off-by: Binbin --- src/cluster_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 79fba255bb..352b4ff4e2 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -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); } /* -----------------------------------------------------------------------------