summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2020-08-11 12:09:45 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-11 16:58:25 +0000
commit28f2b388fc1ab81685d51caa53e240f7b5d3f13c (patch)
treeb35c9f0d24ab481685c61a330ff17112435d3cf1 /src/mongo/s
parentc602f35664ce98582f03cedfa142ce901f223224 (diff)
downloadmongo-28f2b388fc1ab81685d51caa53e240f7b5d3f13c.tar.gz
SERVER-50006 Move OCSPManager to ServiceContext
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/mongos_main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp
index 9477303e6c9..7dd126bca28 100644
--- a/src/mongo/s/mongos_main.cpp
+++ b/src/mongo/s/mongos_main.cpp
@@ -394,6 +394,8 @@ void cleanupTask(const ShutdownTaskArgs& shutdownArgs) {
#ifndef MONGO_CONFIG_USE_RAW_LATCHES
LatchAnalyzer::get(serviceContext).dump();
#endif
+
+ OCSPManager::shutdown(serviceContext);
}
Status initializeSharding(OperationContext* opCtx) {
@@ -671,7 +673,7 @@ ExitCode runMongosServer(ServiceContext* serviceContext) {
}
#ifdef MONGO_CONFIG_SSL
- OCSPManager::get()->startThreadPool();
+ OCSPManager::start(serviceContext);
CertificateExpirationMonitor::get()->start(serviceContext);
#endif