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.h | |
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.h')
-rw-r--r-- | src/mongo/executor/async_multicaster.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/executor/async_multicaster.h b/src/mongo/executor/async_multicaster.h index 2433f1fd45b..c2bc9e0be93 100644 --- a/src/mongo/executor/async_multicaster.h +++ b/src/mongo/executor/async_multicaster.h @@ -29,6 +29,7 @@ #pragma once +#include <memory> #include <vector> #include "mongo/executor/remote_command_response.h" @@ -54,7 +55,7 @@ public: size_t maxConcurrency = kMaxConcurrency; }; - AsyncMulticaster(executor::TaskExecutor* executor, Options options); + AsyncMulticaster(std::shared_ptr<executor::TaskExecutor> executor, Options options); /** * Sends the cmd out to all passed servers (via the executor), observing the multicaster's @@ -73,7 +74,7 @@ public: private: Options _options; - executor::TaskExecutor* _executor; + std::shared_ptr<executor::TaskExecutor> _executor; }; } // namespace executor |