diff options
author | kingsumos <kingsumos@gmail.com> | 2014-04-22 11:44:53 -0400 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-04-23 15:35:07 +0200 |
commit | 19ac9af09f9621f8d41472d047c101c761ceb666 (patch) | |
tree | a83387ae803a25626416adb4b67f58bfb056af0c | |
parent | 7b25ff4bf768cafb763b5fd564292d0f0045f971 (diff) | |
download | redis-19ac9af09f9621f8d41472d047c101c761ceb666.tar.gz |
fix cluster node description showing wrong slot allocation
-rw-r--r-- | src/cluster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c index 106c5a41b..019cf6c78 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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); |