diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2019-04-25 12:30:35 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-04-26 17:29:15 -0400 |
commit | 064297825d97e928d40d3117b5c81e4828629728 (patch) | |
tree | ef6e94be771753d0c1b0a73f9d460f3c751146df /src/mongo/executor/connection_pool_test_fixture.cpp | |
parent | 8cbbba49935f632e876037f9f2d9eecc779eb96a (diff) | |
download | mongo-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.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 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()); } |