Skip to content

Commit 5336f35

Browse files
authored
Merge pull request #463 from kw217/down-hosts-may-be-ignored
CPP-879 Allow remote hosts to come back up
2 parents 58c17d1 + 63b8d8f commit 5336f35

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Unreleased
2+
===========
3+
4+
Bug Fixes
5+
--------
6+
* Allow remote hosts to come back up even if policy ignores down hosts
7+
18
2.14.0
29
===========
310

src/request_processor.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,7 @@ void RequestProcessor::internal_host_ready(const Host::Ptr& host) {
462462
LoadBalancingPolicy::Vec policies = load_balancing_policies();
463463
for (LoadBalancingPolicy::Vec::const_iterator it = policies.begin(); it != policies.end();
464464
++it) {
465-
if ((*it)->distance(host) != CASS_HOST_DISTANCE_IGNORE) {
466-
(*it)->on_host_up(host);
467-
}
465+
(*it)->on_host_up(host);
468466
}
469467
}
470468
}

0 commit comments

Comments
 (0)