Commit 93b1320f authored by antirez's avatar antirez
Browse files

Cluster: fix CLUSTER NODES optimization error in 'j' increment.

parent 4ed7582c
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment