summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_config.h
diff options
context:
space:
mode:
authorHuayu Ouyang <huayu.ouyang@mongodb.com>2021-04-29 22:27:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-10 19:18:24 +0000
commit942b6127cabbdfca9e76b8a8a1672d45a3474bf9 (patch)
treeb09015fee983e3a14ac6da22059ae5300598f94c /src/mongo/db/repl/repl_set_config.h
parent8f87828a42fbe05df15265eda5a0835772169f16 (diff)
downloadmongo-942b6127cabbdfca9e76b8a8a1672d45a3474bf9.tar.gz
SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig
Diffstat (limited to 'src/mongo/db/repl/repl_set_config.h')
-rw-r--r--src/mongo/db/repl/repl_set_config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_set_config.h b/src/mongo/db/repl/repl_set_config.h
index 374e9000870..1733b0eb0be 100644
--- a/src/mongo/db/repl/repl_set_config.h
+++ b/src/mongo/db/repl/repl_set_config.h
@@ -529,6 +529,11 @@ public:
*/
bool isImplicitDefaultWriteConcernMajority() const;
+ /**
+ * Returns true if the getLastErrorDefaults has been customized.
+ */
+ bool containsCustomizedGetLastErrorDefaults() const;
+
private:
/**
* Sets replica set ID to 'defaultReplicaSetId' if 'cfg' does not contain an ID.