Cluster: ignore slot config changes if we are importing it.
This commit is contained in:
parent
6fc53e16ad
commit
a3755ae9ee
@ -1112,8 +1112,10 @@ void clusterUpdateSlotsConfigWith(clusterNode *sender, uint64_t senderConfigEpoc
|
|||||||
if (bitmapTestBit(slots,j)) {
|
if (bitmapTestBit(slots,j)) {
|
||||||
/* We rebind the slot to the new node claiming it if:
|
/* We rebind the slot to the new node claiming it if:
|
||||||
* 1) The slot was unassigned.
|
* 1) The slot was unassigned.
|
||||||
* 2) The new node claims it with a greater configEpoch. */
|
* 2) The new node claims it with a greater configEpoch.
|
||||||
if (server.cluster->slots[j] == sender) continue;
|
* 3) We are not currently importing the slot. */
|
||||||
|
if (server.cluster->slots[j] == sender ||
|
||||||
|
server.cluster->importing_slots_from[j]) continue;
|
||||||
if (server.cluster->slots[j] == NULL ||
|
if (server.cluster->slots[j] == NULL ||
|
||||||
server.cluster->slots[j]->configEpoch < senderConfigEpoch)
|
server.cluster->slots[j]->configEpoch < senderConfigEpoch)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user