Skip to content

Commit

Permalink
Merge pull request #463 from kw217/down-hosts-may-be-ignored
Browse files Browse the repository at this point in the history
CPP-879 Allow remote hosts to come back up
  • Loading branch information
mpenick authored Dec 9, 2019
2 parents 58c17d1 + 63b8d8f commit 5336f35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Unreleased
===========

Bug Fixes
--------
* Allow remote hosts to come back up even if policy ignores down hosts

2.14.0
===========

Expand Down
4 changes: 1 addition & 3 deletions src/request_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,7 @@ void RequestProcessor::internal_host_ready(const Host::Ptr& host) {
LoadBalancingPolicy::Vec policies = load_balancing_policies();
for (LoadBalancingPolicy::Vec::const_iterator it = policies.begin(); it != policies.end();
++it) {
if ((*it)->distance(host) != CASS_HOST_DISTANCE_IGNORE) {
(*it)->on_host_up(host);
}
(*it)->on_host_up(host);
}
}
}
Expand Down

0 comments on commit 5336f35

Please sign in to comment.