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; update_state = update_config = 1;
} }
} else { } else {
/* If this slot was served by this node, but it is /* This node claims to no longer handling the slot,
* no longer claiming it, del it from the table. */ * however we don't change our config as this is likely
if (server.cluster->slots[j] == sender) { * happening because a resharding is in progress, and
clusterDelSlot(j); * it already knows where to redirect clients. */
update_state = update_config = 1;
}
} }
} }
} }