Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(balancer) avoid needless rebuild of balancer when adding target #3477

Merged
merged 1 commit into from
May 22, 2018

Conversation

hishamhm
Copy link
Contributor

This bug was introduced when the loop to find last_equal_index was changed from looping the new targets list into looping the old targets list. Looping the old targets list is more efficient, but the logic for checking the index needed to be updated.

Includes a regression test that verifies that adding a target works and does not rebuild the balancer.

This bug was introduced when the loop to find `last_equal_index`
was changed from looping the new targets list into looping the
old targets list. Looping the old targets list is more efficient,
but the logic for checking the index needed to be updated.

Includes a regression test that verifies that adding a target
works and does not rebuild the balancer.
@hishamhm hishamhm merged commit 6a0779c into master May 22, 2018
@hishamhm hishamhm deleted the fix/balancer-single-target branch May 22, 2018 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants