mirror of
https://github.com/fluencelabs/redis
synced 2025-03-23 11:00:50 +00:00
Cluster: don't set the slot as unassigned because of PONG info.
As stated in the comment this is usually due to a resharding in progress so the client should be still redirected to the old node that will handle the redirection elsewhere.
This commit is contained in:
parent
0d77440b26
commit
caf9b24a7d
@ -874,12 +874,10 @@ int clusterProcessPacket(clusterLink *link) {
|
||||
update_state = update_config = 1;
|
||||
}
|
||||
} else {
|
||||
/* If this slot was served by this node, but it is
|
||||
* no longer claiming it, del it from the table. */
|
||||
if (server.cluster->slots[j] == sender) {
|
||||
clusterDelSlot(j);
|
||||
update_state = update_config = 1;
|
||||
}
|
||||
/* This node claims to no longer handling the slot,
|
||||
* however we don't change our config as this is likely
|
||||
* happening because a resharding is in progress, and
|
||||
* it already knows where to redirect clients. */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user