diff options
author | Ben Caimano <ben.caimano@mongodb.com> | 2019-10-30 17:39:45 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-30 17:39:45 +0000 |
commit | 2fde5d70e4b45caf243019afe2d27d4a77f07194 (patch) | |
tree | 687d7eaa5f7d41e7e33b0885ef1b1f8490d9e29e | |
parent | 7871cec506d3c3ce55522c1f96dfc7c1090eb8ba (diff) | |
download | mongo-2fde5d70e4b45caf243019afe2d27d4a77f07194.tar.gz |
SERVER-43241 Never shutdown grid executors
This commit is applied only to v4.0.
-rw-r--r-- | src/mongo/db/s/sharding_initialization_mongod.cpp | 1 | ||||
-rw-r--r-- | src/mongo/s/server.cpp | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/s/sharding_initialization_mongod.cpp b/src/mongo/db/s/sharding_initialization_mongod.cpp index 9fd134e3a2a..d5f6b0c32dd 100644 --- a/src/mongo/db/s/sharding_initialization_mongod.cpp +++ b/src/mongo/db/s/sharding_initialization_mongod.cpp @@ -159,7 +159,6 @@ void ShardingInitializationMongoD::shutDown(OperationContext* opCtx) { if (!shardingState->enabled()) return; - grid->getExecutorPool()->shutdownAndJoin(); grid->catalogClient()->shutDown(opCtx); } diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index b4d5f97dd46..588b3e4437e 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -208,10 +208,6 @@ void cleanupTask(ServiceContext* serviceContext) { cursorManager->shutdown(opCtx); } - if (auto pool = Grid::get(opCtx)->getExecutorPool()) { - pool->shutdownAndJoin(); - } - if (auto catalog = Grid::get(opCtx)->catalogClient()) { catalog->shutDown(opCtx); } |