summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/optime.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 00:22:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 10:56:02 -0400
commit9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch)
tree3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/db/repl/optime.cpp
parent01965cf52bce6976637ecb8f4a622aeb05ab256a (diff)
downloadmongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/repl/optime.cpp')
-rw-r--r--src/mongo/db/repl/optime.cpp46
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