diff options
author | Xuerui Fa <xuerui.fa@mongodb.com> | 2020-03-06 00:10:10 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-06 19:13:10 +0000 |
commit | 5eee2d71a04e027b6a27053e41df211b923bcf38 (patch) | |
tree | 239756af92c215d7428ca9f7ca8a891e3aac7d0f /src/mongo/db/repl/repl_set_config.h | |
parent | 08166f23783bd0d7fe0be847e149ccc977872378 (diff) | |
download | mongo-5eee2d71a04e027b6a27053e41df211b923bcf38.tar.gz |
SERVER-46344: Add 'newlyAdded' field to new nodes with votes: 1 in reconfig
Diffstat (limited to 'src/mongo/db/repl/repl_set_config.h')
-rw-r--r-- | src/mongo/db/repl/repl_set_config.h | 5 |
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 7f188555dc6..a7222bc0db2 100644 --- a/src/mongo/db/repl/repl_set_config.h +++ b/src/mongo/db/repl/repl_set_config.h @@ -488,6 +488,11 @@ public: */ bool containsArbiter() const; + /** + * Sets the `newlyAdded` field of the MemberConfig at memberIndex to the value passed in. + */ + void setNewlyAddedFieldForMemberAtIndex(int memberIndex, bool newlyAdded); + private: /** * Parses the "settings" subdocument of a replica set configuration. |