summaryrefslogtreecommitdiff
path: root/src/mongo/s/mongos_main.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2021-08-25 19:30:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-11 21:32:36 +0000
commit16839edee101c1b36b6a3d1b6e33a5ec3400c40d (patch)
treeb0c503688637470443c19cc204885781e2f1a670 /src/mongo/s/mongos_main.cpp
parent5d8743fca79c1e34a5e6060e9e1b7322dc78a305 (diff)
downloadmongo-16839edee101c1b36b6a3d1b6e33a5ec3400c40d.tar.gz
SERVER-25042 Start up FTDC earlier during server startup
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r--src/mongo/s/mongos_main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp
index 06ed2277e1e..9fe1899a4ef 100644
--- a/src/mongo/s/mongos_main.cpp
+++ b/src/mongo/s/mongos_main.cpp
@@ -638,6 +638,10 @@ ExitCode runMongosServer(ServiceContext* serviceContext) {
logShardingVersionInfo(nullptr);
audit::logStartupOptions(tc.get(), serverGlobalParams.parsedOpts);
+ ReadWriteConcernDefaults::create(serviceContext, readWriteConcernDefaultsCacheLookupMongoS);
+
+ startMongoSFTDC();
+
// Set up the periodic runner for background job execution
{
auto runner = makePeriodicRunner(serviceContext);
@@ -685,8 +689,6 @@ ExitCode runMongosServer(ServiceContext* serviceContext) {
quickExit(EXIT_BADOPTIONS);
}
- ReadWriteConcernDefaults::create(serviceContext, readWriteConcernDefaultsCacheLookupMongoS);
-
auto opCtxHolder = tc->makeOperationContext();
auto const opCtx = opCtxHolder.get();
@@ -719,8 +721,6 @@ ExitCode runMongosServer(ServiceContext* serviceContext) {
"error"_attr = redact(ex));
}
- startMongoSFTDC();
-
if (mongosGlobalParams.scriptingEnabled) {
ScriptEngine::setup();
}