Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4bce88b1
Commit
4bce88b1
authored
May 28, 2018
by
artix
Committed by
antirez
May 31, 2018
Browse files
Cluster Manager: fixed infinite loop in rebalance (Issue #4941).
parent
3d5e2c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
4bce88b1
...
...
@@ -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--;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment