diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2020-01-21 18:38:41 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-21 18:38:41 +0000 |
commit | c6845bd41a393eedd3e1e979fef030d277de7144 (patch) | |
tree | f78e54133e272b86dbbdb5f23b3f2b39d4961e91 /src/mongo/s/server.cpp | |
parent | e1d3dc63cdb33e75d2a47dbafe0d4ac765dbb8aa (diff) | |
download | mongo-c6845bd41a393eedd3e1e979fef030d277de7144.tar.gz |
SERVER-43719 Load RWC defaults from persisted values during startup
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(); |