diff options
author | Scott Hernandez <scotthernandez@tart.local> | 2016-03-22 11:10:52 -0400 |
---|---|---|
committer | Scott Hernandez <scotthernandez@tart.local> | 2016-03-27 11:45:02 -0400 |
commit | 7a5d4214ca939ff3e522a493d848f9f35ac88d5c (patch) | |
tree | 85170a221945e398507888de0252df9134f2b34d /src/mongo/db/repl/optime.cpp | |
parent | 8e3849c3b7c4abe4ed27e4ca0ee3e01ea06e2384 (diff) | |
download | mongo-7a5d4214ca939ff3e522a493d848f9f35ac88d5c.tar.gz |
SERVER-23010: improved logging readconcern usage
Diffstat (limited to 'src/mongo/db/repl/optime.cpp')
-rw-r--r-- | src/mongo/db/repl/optime.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/repl/optime.cpp b/src/mongo/db/repl/optime.cpp index 288826821c2..93c21c22ba1 100644 --- a/src/mongo/db/repl/optime.cpp +++ b/src/mongo/db/repl/optime.cpp @@ -72,9 +72,7 @@ BSONObj OpTime::toBSON() const { } std::string OpTime::toString() const { - std::stringstream ss; - ss << "(term: " << _term << ", timestamp: " << _timestamp.toStringPretty() << ")"; - return ss.str(); + return toBSON().toString(); } std::ostream& operator<<(std::ostream& out, const OpTime& opTime) { |