summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_config.h
diff options
context:
space:
mode:
authorSergey Galtsev <sergey.galtsev@mongodb.com>2021-03-10 17:50:34 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-10 18:57:54 +0000
commit150548f8317e2e0353ee1c319cda9149bb1d68f6 (patch)
tree5ce609e85855c73ee6b950469633f260d6bf8670 /src/mongo/db/repl/repl_set_config.h
parent867520870aa9b31d6c774ec9254382614dc7ec44 (diff)
downloadmongo-150548f8317e2e0353ee1c319cda9149bb1d68f6.tar.gz
SERVER-50827 Nodes with IP addresses in split horizons must be able to start
Diffstat (limited to 'src/mongo/db/repl/repl_set_config.h')
-rw-r--r--src/mongo/db/repl/repl_set_config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_set_config.h b/src/mongo/db/repl/repl_set_config.h
index 5148d0fa8ea..df9a0481d26 100644
--- a/src/mongo/db/repl/repl_set_config.h
+++ b/src/mongo/db/repl/repl_set_config.h
@@ -252,6 +252,12 @@ public:
Status validate() const;
/**
+ * Performs basic consistency checks on the replica set configuration, but does not fail on
+ * IP addresses in split horizon configuration
+ */
+ Status validateAllowingSplitHorizonIP() const;
+
+ /**
* Checks if this configuration can satisfy the given write concern.
*
* Things that are taken into consideration include:
@@ -550,6 +556,11 @@ private:
void _setRequiredFields();
/**
+ * Performs basic consistency checks on the replica set configuration.
+ */
+ Status _validate(bool allowSplitHorizonIP) const;
+
+ /**
* Common code used by constructors
*/
Status _initialize(bool forInitiate,