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

This commit is contained in:
antirez 2015-03-13 13:16:30 +01:00
parent 4ed7582c7b
commit 93b1320fac

View File

@ -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;
}
}