summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_config.h
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2022-04-01 23:44:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-02 00:25:58 +0000
commitce3e917bfb81b54c3ded7b3f64692f666ddb2162 (patch)
tree11e3e6e1cf93d5ced2edc0d870c74f9536b24aa1 /src/mongo/db/repl/repl_set_config.h
parenteea86b56a99c0bde0c387ab45d42a4ac156e9750 (diff)
downloadmongo-ce3e917bfb81b54c3ded7b3f64692f666ddb2162.tar.gz
SERVER-61864 Disallow removing custom write concern during reconfig if it is currently set as the default
Diffstat (limited to 'src/mongo/db/repl/repl_set_config.h')
-rw-r--r--src/mongo/db/repl/repl_set_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_set_config.h b/src/mongo/db/repl/repl_set_config.h
index 5e410b65963..847677cd292 100644
--- a/src/mongo/db/repl/repl_set_config.h
+++ b/src/mongo/db/repl/repl_set_config.h
@@ -552,6 +552,12 @@ public:
*/
ReplSetConfigPtr getRecipientConfig() const;
+ /**
+ * Compares the write concern modes with another config and returns 'true' if they are
+ * identical.
+ */
+ bool areWriteConcernModesTheSame(ReplSetConfig* otherConfig) const;
+
private:
/**
* Sets replica set ID to 'defaultReplicaSetId' if 'cfg' does not contain an ID.