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:
antirez 2013-02-28 15:54:29 +01:00
parent 0d77440b26
commit caf9b24a7d

View File

@ -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. */
}
}
}