diff --git a/src/redis-cli.c b/src/redis-cli.c index d106d8f5d..e1c1983d5 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -4887,7 +4887,7 @@ static int clusterManagerCommandRebalance(int argc, char **argv) { listRewind(involved, &li); while ((ln = listNext(&li)) != NULL) { clusterManagerNode *n = ln->value; - if (n->balance < 0 && total_balance > 0) { + if (n->balance <= 0 && total_balance > 0) { n->balance--; total_balance--; }