diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-11-11 13:56:17 -0500 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-11-12 00:51:32 -0500 |
commit | 8dee1e3b48531f843e055d445dd545e75db30096 (patch) | |
tree | ac832718232885f36720e5703da1913ae3500a0a /src/mongo/executor/connection_pool_test_fixture.cpp | |
parent | deaf4af449ed9bb1753857a5f49661e1f39b5b87 (diff) | |
download | mongo-8dee1e3b48531f843e055d445dd545e75db30096.tar.gz |
SERVER-21108 check if connection is healthy before returning it from the pool
Diffstat (limited to 'src/mongo/executor/connection_pool_test_fixture.cpp')
-rw-r--r-- | src/mongo/executor/connection_pool_test_fixture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/executor/connection_pool_test_fixture.cpp b/src/mongo/executor/connection_pool_test_fixture.cpp index 3a3b9843fd3..2d48ad0b5e2 100644 --- a/src/mongo/executor/connection_pool_test_fixture.cpp +++ b/src/mongo/executor/connection_pool_test_fixture.cpp @@ -101,6 +101,10 @@ const HostAndPort& ConnectionImpl::getHostAndPort() const { return _hostAndPort; } +bool ConnectionImpl::isHealthy() { + return true; +} + void ConnectionImpl::clear() { _setupQueue.clear(); _refreshQueue.clear(); |