Commit 9e7a8c02 authored by Leon Chen's avatar Leon Chen Committed by GitHub
Browse files

fix return wrong value of clusterDelNodeSlots

parent 2cdf4cc6
...@@ -3600,9 +3600,11 @@ int clusterDelNodeSlots(clusterNode *node) { ...@@ -3600,9 +3600,11 @@ int clusterDelNodeSlots(clusterNode *node) {
int deleted = 0, j; int deleted = 0, j;
for (j = 0; j < CLUSTER_SLOTS; j++) { for (j = 0; j < CLUSTER_SLOTS; j++) {
if (clusterNodeGetSlotBit(node,j)) clusterDelSlot(j); if (clusterNodeGetSlotBit(node,j)) {
clusterDelSlot(j);
deleted++; deleted++;
} }
}
return deleted; return deleted;
} }
......
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