summaryrefslogtreecommitdiff
path: root/src/mongo/s/client
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2019-06-27 15:41:10 -0400
committerRandolph Tan <randolph@10gen.com>2019-07-17 11:43:27 -0400
commited935ffffae8dd373063da350e4cb61547e20688 (patch)
treefb277c512fddb87a44790cf34a0deaae0837dec0 /src/mongo/s/client
parent998640bbece98f31a92bba8c02785c818545ba84 (diff)
downloadmongo-ed935ffffae8dd373063da350e4cb61547e20688.tar.gz
SERVER-40785 Change sharding fixed and arbitrary executors from unique_ptr to shared_ptr
(cherry picked from commit d15b1f2e036e262f8ea976e04780aa366fa20ad4)
Diffstat (limited to 'src/mongo/s/client')
-rw-r--r--src/mongo/s/client/shard_remote.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/client/shard_remote.cpp b/src/mongo/s/client/shard_remote.cpp
index 5e5b5b3ecb9..362160babec 100644
--- a/src/mongo/s/client/shard_remote.cpp
+++ b/src/mongo/s/client/shard_remote.cpp
@@ -301,7 +301,8 @@ StatusWith<Shard::QueryResponse> ShardRemote::_runExhaustiveCursorCommand(
const Milliseconds requestTimeout =
std::min(opCtx->getRemainingMaxTimeMillis(), maxTimeMSOverride);
- Fetcher fetcher(Grid::get(opCtx)->getExecutorPool()->getFixedExecutor(),
+ auto executor = Grid::get(opCtx)->getExecutorPool()->getFixedExecutor();
+ Fetcher fetcher(executor.get(),
host.getValue(),
dbName.toString(),
cmdObj,