summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/member_data.h
diff options
context:
space:
mode:
authorAllison Easton <allison.easton@mongodb.com>2019-06-25 12:30:55 -0400
committerAllison Easton <allison.easton@mongodb.com>2019-06-25 12:30:55 -0400
commitf79258d26879f22cd407d1ce1bf90f365dfc78fe (patch)
tree2b39ae5cbf654ba87b9a55c8e8fee6f3d0f74c2b /src/mongo/db/repl/member_data.h
parentd755b6817f157a6c27a90f146116c8b25aa4a396 (diff)
downloadmongo-f79258d26879f22cd407d1ce1bf90f365dfc78fe.tar.gz
SERVER-40363 Change type of "_id" field of replica set
config to be different from that of the member index
Diffstat (limited to 'src/mongo/db/repl/member_data.h')
-rw-r--r--src/mongo/db/repl/member_data.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/repl/member_data.h b/src/mongo/db/repl/member_data.h
index c3201e0bf75..5b19a6ec46c 100644
--- a/src/mongo/db/repl/member_data.h
+++ b/src/mongo/db/repl/member_data.h
@@ -30,6 +30,7 @@
#pragma once
#include "mongo/bson/timestamp.h"
+#include "mongo/db/repl/member_id.h"
#include "mongo/db/repl/member_state.h"
#include "mongo/db/repl/repl_set_heartbeat_response.h"
#include "mongo/util/time_support.h"
@@ -129,7 +130,7 @@ public:
return _configIndex;
}
- int getMemberId() const {
+ MemberId getMemberId() const {
return _memberId;
}
@@ -228,7 +229,7 @@ public:
_hostAndPort = hostAndPort;
}
- void setMemberId(int memberId) {
+ void setMemberId(MemberId memberId) {
_memberId = memberId;
}
@@ -282,7 +283,7 @@ private:
// This member's member ID. memberId and hostAndPort duplicate information in the
// set's ReplSetConfig.
- int _memberId = -1;
+ MemberId _memberId;
// Client address of this member.
HostAndPort _hostAndPort;