Skip to content

Commit e0918a3

Browse files
committed
Merge pull request redis#1701 from kingsumos/node_description
fix cluster node description showing wrong slot allocation
2 parents cb4e2ee + a69178f commit e0918a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3131,7 +3131,7 @@ sds clusterGenNodeDescription(clusterNode *node) {
31313131
if (start == -1) start = j;
31323132
}
31333133
if (start != -1 && (!bit || j == REDIS_CLUSTER_SLOTS-1)) {
3134-
if (j == REDIS_CLUSTER_SLOTS-1) j++;
3134+
if (bit && j == REDIS_CLUSTER_SLOTS-1) j++;
31353135

31363136
if (start == j-1) {
31373137
ci = sdscatprintf(ci," %d",start);

0 commit comments

Comments
 (0)