diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-01-19 07:13:37 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-19 06:59:33 +0000 |
commit | 1983b3633c95ec71dc8070b8a864411374221d40 (patch) | |
tree | 1473b54bef6b28e2a306ca3c3b7ce659e27f737b /src/mongo/db/commands/rwc_defaults_commands.cpp | |
parent | 6f1bb29c277b702f4b7e09fc6d90e7c246ce174c (diff) | |
download | mongo-1983b3633c95ec71dc8070b8a864411374221d40.tar.gz |
Revert "SERVER-60817 Check write concern string for validity"
This reverts commit 4c96930ccb001d91fd188380f80756c19f1ad3c1.
Diffstat (limited to 'src/mongo/db/commands/rwc_defaults_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/rwc_defaults_commands.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/commands/rwc_defaults_commands.cpp b/src/mongo/db/commands/rwc_defaults_commands.cpp index f02cd506186..bb8266929bc 100644 --- a/src/mongo/db/commands/rwc_defaults_commands.cpp +++ b/src/mongo/db/commands/rwc_defaults_commands.cpp @@ -116,14 +116,6 @@ public: auto& rwcDefaults = ReadWriteConcernDefaults::get(opCtx->getServiceContext()); auto newDefaults = rwcDefaults.generateNewCWRWCToBeSavedOnDisk( opCtx, request().getDefaultReadConcern(), request().getDefaultWriteConcern()); - // We don't want to check if the custom write concern exists on the config servers - // because it only has to exist on the actual shards in order to be valid. - if (serverGlobalParams.clusterRole != ClusterRole::ConfigServer) { - if (auto optWC = newDefaults.getDefaultWriteConcern()) { - uassertStatusOK( - repl::ReplicationCoordinator::get(opCtx)->validateWriteConcern(*optWC)); - } - } updatePersistedDefaultRWConcernDocument(opCtx, newDefaults); LOGV2(20498, |