diff options
author | Randolph Tan <randolph@10gen.com> | 2019-06-27 15:41:10 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2019-07-17 11:43:27 -0400 |
commit | ed935ffffae8dd373063da350e4cb61547e20688 (patch) | |
tree | fb277c512fddb87a44790cf34a0deaae0837dec0 /src/mongo/s/client | |
parent | 998640bbece98f31a92bba8c02785c818545ba84 (diff) | |
download | mongo-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.cpp | 3 |
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, |