Commit caf9b24a authored by antirez's avatar antirez
Browse files

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.
parent 0d77440b
...@@ -874,12 +874,10 @@ int clusterProcessPacket(clusterLink *link) { ...@@ -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;
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment