summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool_test_fixture.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2019-04-25 12:30:35 -0400
committerBen Caimano <ben.caimano@10gen.com>2019-04-26 17:29:15 -0400
commit064297825d97e928d40d3117b5c81e4828629728 (patch)
treeef6e94be771753d0c1b0a73f9d460f3c751146df /src/mongo/executor/connection_pool_test_fixture.cpp
parent8cbbba49935f632e876037f9f2d9eecc779eb96a (diff)
downloadmongo-064297825d97e928d40d3117b5c81e4828629728.tar.gz
SERVER-40819 Use ConnectionPool shared_ptr for full lifetime management
Diffstat (limited to 'src/mongo/executor/connection_pool_test_fixture.cpp')
-rw-r--r--src/mongo/executor/connection_pool_test_fixture.cpp4
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 86adce43faa..6c0321fa619 100644
--- a/src/mongo/executor/connection_pool_test_fixture.cpp
+++ b/src/mongo/executor/connection_pool_test_fixture.cpp
@@ -226,6 +226,10 @@ std::shared_ptr<ConnectionPool::TimerInterface> PoolImpl::makeTimer() {
return stdx::make_unique<TimerImpl>(this);
}
+const std::shared_ptr<OutOfLineExecutor>& PoolImpl::getExecutor() {
+ return _executor;
+}
+
Date_t PoolImpl::now() {
return _now.get_value_or(Date_t::now());
}