mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
fix cluster node description showing wrong slot allocation
This commit is contained in:
parent
8827dc4eec
commit
a69178fdd2
@ -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…
Reference in New Issue
Block a user