提交 19ac9af0 编写于 作者: K kingsumos 提交者: antirez

fix cluster node description showing wrong slot allocation

上级 7b25ff4b
......@@ -3131,7 +3131,7 @@ sds clusterGenNodeDescription(clusterNode *node) {
if (start == -1) start = j;
}
if (start != -1 && (!bit || j == REDIS_CLUSTER_SLOTS-1)) {
if (j == REDIS_CLUSTER_SLOTS-1) j++;
if (bit && j == REDIS_CLUSTER_SLOTS-1) j++;
if (start == j-1) {
ci = sdscatprintf(ci," %d",start);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册