mirror of
https://github.com/fluencelabs/redis
synced 2025-04-12 04:06:04 +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)
|
if (senderCurrentEpoch > server.cluster->currentEpoch)
|
||||||
server.cluster->currentEpoch = senderCurrentEpoch;
|
server.cluster->currentEpoch = senderCurrentEpoch;
|
||||||
/* Update the sender configEpoch if it is publishing a newer one. */
|
/* Update the sender configEpoch if it is publishing a newer one. */
|
||||||
if (senderConfigEpoch > sender->configEpoch)
|
if (senderConfigEpoch > sender->configEpoch) {
|
||||||
sender->configEpoch = senderConfigEpoch;
|
sender->configEpoch = senderConfigEpoch;
|
||||||
|
clusterSaveConfigOrDie();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process packets by type. */
|
/* Process packets by type. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user