提交 b1875177 编写于 作者: A antirez

Cluster: when upading the configEpoch for a node, save config on disk ASAP.

上级 03ca9039
......@@ -924,8 +924,10 @@ int clusterProcessPacket(clusterLink *link) {
if (senderCurrentEpoch > server.cluster->currentEpoch)
server.cluster->currentEpoch = senderCurrentEpoch;
/* Update the sender configEpoch if it is publishing a newer one. */
if (senderConfigEpoch > sender->configEpoch)
if (senderConfigEpoch > sender->configEpoch) {
sender->configEpoch = senderConfigEpoch;
clusterSaveConfigOrDie();
}
}
/* Process packets by type. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册