diff --git a/src/cluster.c b/src/cluster.c index c9b39094ddf1813d40d84359b84d319b14969944..d2490dbae8487b613cce8dfea130ec9b8d3117b1 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1546,6 +1546,10 @@ int clusterProcessPacket(clusterLink *link) { /* If in our current config the node is a slave, set it as a master. */ if (nodeIsSlave(n)) clusterSetNodeAsMaster(n); + /* Update the node's configEpoch. */ + n->configEpoch = reportedConfigEpoch; + clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|CLUSTER_TODO_FSYNC_CONFIG); + /* Check the bitmap of served slots and udpate our * config accordingly. */ clusterUpdateSlotsConfigWith(n,reportedConfigEpoch,