diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2020-06-15 13:37:15 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-16 05:37:56 +0000 |
commit | ce7b3e0bea0426c25d06bd26a6cbdfd47a42d5c6 (patch) | |
tree | acc91a74087ee5c04426a14cf77ec78375a97efd /src/mongo/db/repl/member_config.h | |
parent | 2d910ef001820ede2d16e597947a4e0893040030 (diff) | |
download | mongo-ce7b3e0bea0426c25d06bd26a6cbdfd47a42d5c6.tar.gz |
SERVER-48411 Increase maximum allowed replica set memberId on disk from 255 to INT_MAX.
(cherry picked from commit 52db264df93fe1f5f75647136793bd025c0393a8)
Diffstat (limited to 'src/mongo/db/repl/member_config.h')
-rw-r--r-- | src/mongo/db/repl/member_config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/repl/member_config.h b/src/mongo/db/repl/member_config.h index d6bb75622f3..39fbc30750b 100644 --- a/src/mongo/db/repl/member_config.h +++ b/src/mongo/db/repl/member_config.h @@ -76,6 +76,14 @@ public: static const std::string kConfigVoterTagName; /** + * Inline `kMaxUserMemberId` to allow others use + * the constant without linking to `member_config.cpp`. + * + * Maximum allowed member id for new nodes added by user. + */ + inline static const int kMaxUserMemberId = 255; + + /** * Construct a MemberConfig from the contents of "mcfg". * * If "mcfg" describes any tags, builds ReplSetTags for this |