Commit 19ac9af0 authored by kingsumos's avatar kingsumos Committed by antirez
Browse files

fix cluster node description showing wrong slot allocation

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment