diff options
author | Varun Ravichandran <varun.ravichandran@mongodb.com> | 2022-05-19 18:11:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-27 16:05:22 +0000 |
commit | 834c86a44cef817ba8dce4aa24931b69c69aac50 (patch) | |
tree | aae321d349201a284fd123ea5ab9e4a062e87c59 /src/mongo/s/mongos_main.cpp | |
parent | e74b25e957c8e4f46aa721151aa72007537b4cde (diff) | |
download | mongo-834c86a44cef817ba8dce4aa24931b69c69aac50.tar.gz |
SERVER-65728: Audit cluster server parameters on startup, update, and retrieval
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r-- | src/mongo/s/mongos_main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp index 39aca129b84..8927a858ee0 100644 --- a/src/mongo/s/mongos_main.cpp +++ b/src/mongo/s/mongos_main.cpp @@ -650,7 +650,6 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { ThreadClient tc("mongosMain", serviceContext); logMongosVersionInfo(nullptr); - audit::logStartupOptions(tc.get(), serverGlobalParams.parsedOpts); // Set up the periodic runner for background job execution { @@ -808,6 +807,10 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { return EXIT_NET_ERROR; } + // Startup options are written to the audit log at the end of startup so that cluster server + // parameters are guaranteed to have been initialized from disk at this point. + audit::logStartupOptions(tc.get(), serverGlobalParams.parsedOpts); + serviceContext->notifyStartupComplete(); #if !defined(_WIN32) |