diff options
author | Spencer T Brody <spencer@mongodb.com> | 2018-03-29 19:11:41 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2018-04-13 13:52:03 -0400 |
commit | a8d662311cf7e5baf0096249dda87686287cf4ae (patch) | |
tree | 6d8054d249e767662e5e1dbcfb4e232272f88517 /src/mongo/db/repl/repl_set_config.h | |
parent | ad59e01e070bb3822172f3f551f250d3218e4fc5 (diff) | |
download | mongo-a8d662311cf7e5baf0096249dda87686287cf4ae.tar.gz |
SERVER-33759 Forbid replication protocol version 0
Diffstat (limited to 'src/mongo/db/repl/repl_set_config.h')
-rw-r--r-- | src/mongo/db/repl/repl_set_config.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mongo/db/repl/repl_set_config.h b/src/mongo/db/repl/repl_set_config.h index 90263451170..04bbae18722 100644 --- a/src/mongo/db/repl/repl_set_config.h +++ b/src/mongo/db/repl/repl_set_config.h @@ -72,19 +72,15 @@ public: /** * Initializes this ReplSetConfig from the contents of "cfg". - * The default protocol version is 0 to keep backward-compatibility. - * If usePV1ByDefault is true, the protocol version will be 1 when it's not specified in "cfg". * Sets _replicaSetId to "defaultReplicaSetId" if a replica set ID is not specified in "cfg". */ - Status initialize(const BSONObj& cfg, - bool usePV1ByDefault = false, - OID defaultReplicaSetId = OID()); + Status initialize(const BSONObj& cfg, OID defaultReplicaSetId = OID()); /** * Same as the generic initialize() above except will default "configsvr" setting to the value * of serverGlobalParams.configsvr. */ - Status initializeForInitiate(const BSONObj& cfg, bool usePV1ByDefault = false); + Status initializeForInitiate(const BSONObj& cfg); /** * Returns true if this object has been successfully initialized or copied from @@ -381,10 +377,7 @@ private: * Sets replica set ID to 'defaultReplicaSetId' if forInitiate is false and 'cfg' does not * contain an ID. */ - Status _initialize(const BSONObj& cfg, - bool forInitiate, - bool usePV1ByDefault, - OID defaultReplicaSetId); + Status _initialize(const BSONObj& cfg, bool forInitiate, OID defaultReplicaSetId); bool _isInitialized = false; long long _version = 1; |