diff options
Diffstat (limited to 'src/mongo/db/repl/optime.cpp')
-rw-r--r-- | src/mongo/db/repl/optime.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mongo/db/repl/optime.cpp b/src/mongo/db/repl/optime.cpp index 73907ac9146..87cf966c1ef 100644 --- a/src/mongo/db/repl/optime.cpp +++ b/src/mongo/db/repl/optime.cpp @@ -36,33 +36,33 @@ namespace mongo { namespace repl { - OpTime::OpTime(Timestamp ts, long long term) : _timestamp(std::move(ts)), _term(term) {} +OpTime::OpTime(Timestamp ts, long long term) : _timestamp(std::move(ts)), _term(term) {} - Timestamp OpTime::getTimestamp() const { - return _timestamp; - } +Timestamp OpTime::getTimestamp() const { + return _timestamp; +} - long long OpTime::getSecs() const { - return _timestamp.getSecs(); - } +long long OpTime::getSecs() const { + return _timestamp.getSecs(); +} - long long OpTime::getTerm() const { - return _term; - } +long long OpTime::getTerm() const { + return _term; +} - bool OpTime::isNull() const { - return _timestamp.isNull(); - } +bool OpTime::isNull() const { + return _timestamp.isNull(); +} - std::string OpTime::toString() const { - std::stringstream ss; - ss << "(term: " << _term << ", timestamp: " << _timestamp.toStringPretty() << ")"; - return ss.str(); - } +std::string OpTime::toString() const { + std::stringstream ss; + ss << "(term: " << _term << ", timestamp: " << _timestamp.toStringPretty() << ")"; + return ss.str(); +} - std::ostream& operator<<(std::ostream& out, const OpTime& opTime) { - return out << opTime.toString(); - } +std::ostream& operator<<(std::ostream& out, const OpTime& opTime) { + return out << opTime.toString(); +} -} // namespace repl -} // namespace mongo +} // namespace repl +} // namespace mongo |