mirror of
https://github.com/fluencelabs/redis
synced 2025-03-16 15:40:49 +00:00
Merge pull request #1701 from kingsumos/node_description
fix cluster node description showing wrong slot allocation
This commit is contained in:
commit
e0918a332d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user