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/db/s/migration_source_manager.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/db/s/migration_source_manager.cpp')
-rw-r--r-- | src/mongo/db/s/migration_source_manager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_source_manager.cpp b/src/mongo/db/s/migration_source_manager.cpp index 65d557688d6..4e9fb2fd0ff 100644 --- a/src/mongo/db/s/migration_source_manager.cpp +++ b/src/mongo/db/s/migration_source_manager.cpp @@ -109,8 +109,7 @@ void refreshRecipientRoutingTable(OperationContext* opCtx, opCtx, executor::RemoteCommandRequest::kNoTimeout); - executor::TaskExecutor* const executor = - Grid::get(opCtx)->getExecutorPool()->getFixedExecutor(); + auto executor = Grid::get(opCtx)->getExecutorPool()->getFixedExecutor(); auto noOp = [](const executor::TaskExecutor::RemoteCommandCallbackArgs&) {}; executor->scheduleRemoteCommand(request, noOp).getStatus().ignore(); } |