diff options
| author | Randolph Tan <randolph@10gen.com> | 2019-06-27 15:41:10 -0400 |
|---|---|---|
| committer | Randolph Tan <randolph@10gen.com> | 2019-07-09 15:24:50 -0400 |
| commit | d15b1f2e036e262f8ea976e04780aa366fa20ad4 (patch) | |
| tree | a999cbb7f411c32855e6ce93f4588a7fd309ace7 /src/mongo/executor/async_multicaster.cpp | |
| parent | 209bbe879e84b4419295c8195bdbc2929c89e602 (diff) | |
| download | mongo-d15b1f2e036e262f8ea976e04780aa366fa20ad4.tar.gz | |
SERVER-40785 Change sharding fixed and arbitrary executors from unique_ptr to shared_ptr
Diffstat (limited to 'src/mongo/executor/async_multicaster.cpp')
| -rw-r--r-- | src/mongo/executor/async_multicaster.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/executor/async_multicaster.cpp b/src/mongo/executor/async_multicaster.cpp index f1c97acf5a3..24e72527d51 100644 --- a/src/mongo/executor/async_multicaster.cpp +++ b/src/mongo/executor/async_multicaster.cpp @@ -44,8 +44,9 @@ namespace mongo { namespace executor { -AsyncMulticaster::AsyncMulticaster(executor::TaskExecutor* executor, Options options) - : _options(options), _executor(executor) {} +AsyncMulticaster::AsyncMulticaster(std::shared_ptr<executor::TaskExecutor> executor, + Options options) + : _options(options), _executor(std::move(executor)) {} std::vector<AsyncMulticaster::Reply> AsyncMulticaster::multicast( const std::vector<HostAndPort> servers, |
