From 93b1320fac8eae53fd9fca570a1784cbd2a89d27 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 13 Mar 2015 13:16:30 +0100 Subject: [PATCH] Cluster: fix CLUSTER NODES optimization error in 'j' increment. --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 1e9d8867..d4c6300d 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -3590,7 +3590,7 @@ sds clusterGenNodeDescription(sds ci, clusterNode *node) { uint32_t *slotword = ((uint32_t*)node->slots)+(j/32); if ((start == -1 && *slotword == 0) || (start != -1 && *slotword == UINT32_MAX)) { - j += 32; + j += 31; /* The for loop will increment j one more time. */ continue; } }