summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorGabriel Marks <gabriel.marks@mongodb.com>2022-01-18 15:12:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-18 16:26:20 +0000
commit4c96930ccb001d91fd188380f80756c19f1ad3c1 (patch)
tree9961263123e2878b6ebd0287ec94ccfff326ef7a /src/mongo/embedded
parentf857a8efec9cde7a8c6ee903043e2cd4b5396d48 (diff)
downloadmongo-4c96930ccb001d91fd188380f80756c19f1ad3c1.tar.gz
SERVER-60817 Check write concern string for validity
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r--src/mongo/embedded/replication_coordinator_embedded.cpp5
-rw-r--r--src/mongo/embedded/replication_coordinator_embedded.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/embedded/replication_coordinator_embedded.cpp b/src/mongo/embedded/replication_coordinator_embedded.cpp
index 784de9edccf..b178e9d1972 100644
--- a/src/mongo/embedded/replication_coordinator_embedded.cpp
+++ b/src/mongo/embedded/replication_coordinator_embedded.cpp
@@ -372,6 +372,11 @@ Milliseconds ReplicationCoordinatorEmbedded::getConfigHeartbeatInterval() const
UASSERT_NOT_IMPLEMENTED;
}
+Status ReplicationCoordinatorEmbedded::validateWriteConcern(
+ const WriteConcernOptions& writeConcern) const {
+ UASSERT_NOT_IMPLEMENTED;
+}
+
void ReplicationCoordinatorEmbedded::processReplSetGetConfig(BSONObjBuilder*,
bool commitmentStatus,
bool includeNewlyAdded) {
diff --git a/src/mongo/embedded/replication_coordinator_embedded.h b/src/mongo/embedded/replication_coordinator_embedded.h
index b41f8430096..9a6bad99f28 100644
--- a/src/mongo/embedded/replication_coordinator_embedded.h
+++ b/src/mongo/embedded/replication_coordinator_embedded.h
@@ -206,6 +206,8 @@ public:
Milliseconds getConfigHeartbeatInterval() const override;
+ Status validateWriteConcern(const WriteConcernOptions& writeConcern) const override;
+
void processReplSetGetConfig(BSONObjBuilder*,
bool commitmentStatus = false,
bool includeNewlyAdded = false) override;