diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2021-08-25 19:30:25 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-10 14:23:53 +0000 |
commit | b7d29c204f0a4b62fc1d9bccc3ec341bbeed330c (patch) | |
tree | e982be2f83529f7633c8fdfe84fc19042b1a48fd /src/mongo/s/mongos_main.cpp | |
parent | 35dd7411084701594e0912be7964c18d06886baf (diff) | |
download | mongo-b7d29c204f0a4b62fc1d9bccc3ec341bbeed330c.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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp index 0de9e5c87c9..21c6aa7cc70 100644 --- a/src/mongo/s/mongos_main.cpp +++ b/src/mongo/s/mongos_main.cpp @@ -637,6 +637,8 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { logShardingVersionInfo(nullptr); audit::logStartupOptions(tc.get(), serverGlobalParams.parsedOpts); + startMongoSFTDC(); + // Set up the periodic runner for background job execution { auto runner = makePeriodicRunner(serviceContext); @@ -718,8 +720,6 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { "error"_attr = redact(ex)); } - startMongoSFTDC(); - if (mongosGlobalParams.scriptingEnabled) { ScriptEngine::setup(); } |