提交 caf9b24a 编写于 作者: A antirez

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.
上级 0d77440b
......@@ -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. */
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册