summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_config.cpp
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2020-06-15 13:37:15 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-16 05:37:56 +0000
commitce7b3e0bea0426c25d06bd26a6cbdfd47a42d5c6 (patch)
treeacc91a74087ee5c04426a14cf77ec78375a97efd /src/mongo/db/repl/repl_set_config.cpp
parent2d910ef001820ede2d16e597947a4e0893040030 (diff)
downloadmongo-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/repl_set_config.cpp')
-rw-r--r--src/mongo/db/repl/repl_set_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_set_config.cpp b/src/mongo/db/repl/repl_set_config.cpp
index a0df57d6315..c768cedd634 100644
--- a/src/mongo/db/repl/repl_set_config.cpp
+++ b/src/mongo/db/repl/repl_set_config.cpp
@@ -454,7 +454,7 @@ int ReplSetConfig::findMemberIndexByHostAndPort(const HostAndPort& hap) const {
return -1;
}
-int ReplSetConfig::findMemberIndexByConfigId(long long configId) const {
+int ReplSetConfig::findMemberIndexByConfigId(int configId) const {
int x = 0;
for (const auto& member : getMembers()) {
if (member.getId() == MemberId(configId)) {