diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2019-04-26 15:03:46 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-06-21 17:02:30 -0400 |
commit | 1eff33bd1a8d48eb607675f87faf1836ba325006 (patch) | |
tree | 80149c8ff06158f7fdaaa0014500c06d080575a4 /src/mongo/s/server.cpp | |
parent | 8c4dfc2ba0568bd128a27f6481994758ce5f1c10 (diff) | |
download | mongo-1eff33bd1a8d48eb607675f87faf1836ba325006.tar.gz |
SERVER-39936 Use PeriodicRunner handles to simplify shutdown ordering
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r-- | src/mongo/s/server.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 0a4a7fb2cbf..b31b90bde7d 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -212,12 +212,6 @@ void cleanupTask(ServiceContext* serviceContext) { if (serviceContext) { serviceContext->setKillAllOperations(); - - // Shut down the background periodic task runner. - auto runner = serviceContext->getPeriodicRunner(); - if (runner) { - runner->shutdown(); - } } // Perform all shutdown operations after setKillAllOperations is called in order to ensure @@ -493,7 +487,6 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { // Set up the periodic runner for background job execution { auto runner = makePeriodicRunner(serviceContext); - runner->startup(); serviceContext->setPeriodicRunner(std::move(runner)); } |