diff options
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r-- | src/mongo/s/server.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 2db78c6db78..faa5ccf183b 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -579,6 +579,13 @@ ExitCode runMongosServer(ServiceContext* serviceContext) { ->getBalancerConfiguration() ->refreshAndCheck(opCtx) .transitional_ignore(); + + try { + ReadWriteConcernDefaults::get(serviceContext).refreshIfNecessary(opCtx); + } catch (const DBException& ex) { + warning() << "Failed to load read and write concern defaults at startup" + << causedBy(redact(ex.toStatus())); + } } startMongoSFTDC(); |