summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/optime.cpp
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2016-01-26 12:40:58 -0500
committermatt dannenberg <matt.dannenberg@10gen.com>2016-02-04 11:22:18 -0500
commitc3d0eecc3cad249849734eae96096b8ad313ab04 (patch)
tree4faa4a6bc06cd5a99586f3ee9f603a37acac0b15 /src/mongo/db/repl/optime.cpp
parent2c2e6a38f559f25559c2b24eff51511c6fbc4a5b (diff)
downloadmongo-c3d0eecc3cad249849734eae96096b8ad313ab04.tar.gz
SERVER-22269 make ReadConcern: majority reflect journaled state on PRIMARY
Diffstat (limited to 'src/mongo/db/repl/optime.cpp')
-rw-r--r--src/mongo/db/repl/optime.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mongo/db/repl/optime.cpp b/src/mongo/db/repl/optime.cpp
index 8cf08a0afd7..288826821c2 100644
--- a/src/mongo/db/repl/optime.cpp
+++ b/src/mongo/db/repl/optime.cpp
@@ -41,26 +41,6 @@ namespace repl {
const char OpTime::kTimestampFieldName[] = "ts";
const char OpTime::kTermFieldName[] = "t";
-OpTime::OpTime() : _timestamp(Timestamp(0, 0)), _term(OpTime::kUninitializedTerm) {}
-
-OpTime::OpTime(Timestamp ts, long long term) : _timestamp(std::move(ts)), _term(term) {}
-
-Timestamp OpTime::getTimestamp() const {
- return _timestamp;
-}
-
-long long OpTime::getSecs() const {
- return _timestamp.getSecs();
-}
-
-long long OpTime::getTerm() const {
- return _term;
-}
-
-bool OpTime::isNull() const {
- return _timestamp.isNull();
-}
-
void OpTime::append(BSONObjBuilder* builder, const std::string& subObjName) const {
BSONObjBuilder opTimeBuilder(builder->subobjStart(subObjName));
opTimeBuilder.append(kTimestampFieldName, _timestamp);