From d15b1f2e036e262f8ea976e04780aa366fa20ad4 Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Thu, 27 Jun 2019 15:41:10 -0400 Subject: SERVER-40785 Change sharding fixed and arbitrary executors from unique_ptr to shared_ptr --- src/mongo/executor/async_multicaster.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mongo/executor/async_multicaster.cpp') 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, + Options options) + : _options(options), _executor(std::move(executor)) {} std::vector AsyncMulticaster::multicast( const std::vector servers, -- cgit v1.2.1