From 19ac9af09f9621f8d41472d047c101c761ceb666 Mon Sep 17 00:00:00 2001 From: kingsumos Date: Tue, 22 Apr 2014 11:44:53 -0400 Subject: [PATCH] fix cluster node description showing wrong slot allocation --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 106c5a41..019cf6c7 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); -- GitLab