mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Cluster: when upading the configEpoch for a node, save config on disk ASAP.
This commit is contained in:
parent
03ca903983
commit
b187517719
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user