summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_heartbeat_response.h
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2018-06-29 18:36:39 -0400
committersmani87 <suganthi.mani@mongodb.com>2018-07-09 13:34:36 -0400
commit675d4851c4be73cf60a163be2436d6ed0b04e0c0 (patch)
treebc8afe49d71dafab28278db2245ec2b7d3a9b409 /src/mongo/db/repl/repl_set_heartbeat_response.h
parentf5405e05491659a1bf7b975fd60124e44e71cdf6 (diff)
downloadmongo-675d4851c4be73cf60a163be2436d6ed0b04e0c0.tar.gz
SERVER-31963 Removal of pv0 specific fields in the heartbeat messages.
Diffstat (limited to 'src/mongo/db/repl/repl_set_heartbeat_response.h')
-rw-r--r--src/mongo/db/repl/repl_set_heartbeat_response.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/src/mongo/db/repl/repl_set_heartbeat_response.h b/src/mongo/db/repl/repl_set_heartbeat_response.h
index 25e56c15179..5fe978d0d15 100644
--- a/src/mongo/db/repl/repl_set_heartbeat_response.h
+++ b/src/mongo/db/repl/repl_set_heartbeat_response.h
@@ -71,21 +71,6 @@ public:
return toBSON(true).toString();
}
- bool hasDataSet() const {
- return _hasDataSet;
- }
- bool hasData() const {
- return _hasData;
- }
- bool isMismatched() const {
- return _mismatch;
- }
- bool isReplSet() const {
- return _isReplSet;
- }
- bool isStateDisagreement() const {
- return _stateDisagreement;
- }
const std::string& getReplicaSetName() const {
return _setName;
}
@@ -97,17 +82,9 @@ public:
return _electionTimeSet;
}
Timestamp getElectionTime() const;
- bool hasIsElectable() const {
- return _electableSet;
- }
- bool isElectable() const;
const std::string& getHbMsg() const {
return _hbmsg;
}
- bool hasTime() const {
- return _timeSet;
- }
- Seconds getTime() const;
const HostAndPort& getSyncingTo() const {
return _syncingTo;
}
@@ -135,34 +112,6 @@ public:
OpTime getDurableOpTime() const;
/**
- * Sets _mismatch to true.
- */
- void noteMismatched() {
- _mismatch = true;
- }
-
- /**
- * Sets _isReplSet to true.
- */
- void noteReplSet() {
- _isReplSet = true;
- }
-
- /**
- * Sets _stateDisagreement to true.
- */
- void noteStateDisagreement() {
- _stateDisagreement = true;
- }
-
- /**
- * Sets _hasData to true, and _hasDataSet to true to indicate _hasData has been modified
- */
- void noteHasData() {
- _hasDataSet = _hasData = true;
- }
-
- /**
* Sets _setName to "name".
*/
void setSetName(std::string name) {
@@ -186,15 +135,6 @@ public:
}
/**
- * Sets _electable to "electable" and sets _electableSet to true to indicate
- * that the value of _electable has been modified.
- */
- void setElectable(bool electable) {
- _electableSet = true;
- _electable = electable;
- }
-
- /**
* Sets _hbmsg to "hbmsg".
*/
void setHbMsg(std::string hbmsg) {
@@ -202,15 +142,6 @@ public:
}
/**
- * Sets the optional "time" field of the response to "theTime", which is
- * a count of seconds since the UNIX epoch.
- */
- void setTime(Seconds theTime) {
- _timeSet = true;
- _time = theTime;
- }
-
- /**
* Sets _syncingTo to "syncingTo".
*/
void setSyncingTo(const HostAndPort& syncingTo) {
@@ -252,25 +183,12 @@ private:
bool _electionTimeSet = false;
Timestamp _electionTime;
- bool _timeSet = false;
- Seconds _time = Seconds(0); // Seconds since UNIX epoch.
-
bool _appliedOpTimeSet = false;
OpTime _appliedOpTime;
bool _durableOpTimeSet = false;
OpTime _durableOpTime;
- bool _electableSet = false;
- bool _electable = false;
-
- bool _hasDataSet = false;
- bool _hasData = false;
-
- bool _mismatch = false;
- bool _isReplSet = false;
- bool _stateDisagreement = false;
-
bool _stateSet = false;
MemberState _state;