diff options
author | Pavithra Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2017-11-16 14:45:53 -0500 |
---|---|---|
committer | Pavithra Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2017-11-16 14:49:23 -0500 |
commit | 3248ccbff8078af7351ee39dda30f77a158fe7a6 (patch) | |
tree | 04d6154fff320e1eead8da23d58d0c5d40994ab8 /src/mongo/db/repl/roll_back_local_operations.cpp | |
parent | 9444931ce0e91bc7bfa150d5643e59d0693f2d95 (diff) | |
download | mongo-3248ccbff8078af7351ee39dda30f77a158fe7a6.tar.gz |
SERVER-27814 Prints Timestamp consistently, changes toString(), and removes toStringLong()
Diffstat (limited to 'src/mongo/db/repl/roll_back_local_operations.cpp')
-rw-r--r-- | src/mongo/db/repl/roll_back_local_operations.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/repl/roll_back_local_operations.cpp b/src/mongo/db/repl/roll_back_local_operations.cpp index 2174819bd18..e9d4084a046 100644 --- a/src/mongo/db/repl/roll_back_local_operations.cpp +++ b/src/mongo/db/repl/roll_back_local_operations.cpp @@ -97,8 +97,8 @@ StatusWith<RollBackLocalOperations::RollbackCommonPoint> RollBackLocalOperations long long diff = static_cast<long long>(getTimestamp(_localOplogValue).getSecs()) - getTimestamp(operation).getSecs(); // diff could be positive, negative, or zero - log() << "our last optime: " << getTimestamp(_localOplogValue).toStringPretty(); - log() << "their last optime: " << getTimestamp(operation).toStringPretty(); + log() << "our last optime: " << getTimestamp(_localOplogValue); + log() << "their last optime: " << getTimestamp(operation); log() << "diff in end of log times: " << diff << " seconds"; if (diff > 1800) { severe() << "rollback too long a time period for a rollback."; @@ -120,8 +120,8 @@ StatusWith<RollBackLocalOperations::RollbackCommonPoint> RollBackLocalOperations if (!result.isOK()) { severe() << "rollback error RS101 reached beginning of local oplog"; log() << " scanned: " << _scanned; - log() << " theirTime: " << getTimestamp(operation).toStringLong(); - log() << " ourTime: " << getTimestamp(_localOplogValue).toStringLong(); + log() << " theirTime: " << getTimestamp(operation); + log() << " ourTime: " << getTimestamp(_localOplogValue); return StatusWith<RollbackCommonPoint>(ErrorCodes::NoMatchingDocument, "RS101 reached beginning of local oplog [2]"); } @@ -145,8 +145,8 @@ StatusWith<RollBackLocalOperations::RollbackCommonPoint> RollBackLocalOperations if (!result.isOK()) { severe() << "rollback error RS101 reached beginning of local oplog"; log() << " scanned: " << _scanned; - log() << " theirTime: " << getTimestamp(operation).toStringLong(); - log() << " ourTime: " << getTimestamp(_localOplogValue).toStringLong(); + log() << " theirTime: " << getTimestamp(operation); + log() << " ourTime: " << getTimestamp(_localOplogValue); return StatusWith<RollbackCommonPoint>(ErrorCodes::NoMatchingDocument, "RS101 reached beginning of local oplog [1]"); } @@ -191,7 +191,7 @@ StatusWith<RollBackLocalOperations::RollbackCommonPoint> syncRollBackLocalOperat severe() << "rollback error RS100 reached beginning of remote oplog"; log() << " them: " << remoteOplog.toString(); - log() << " theirTime: " << theirTime.toStringLong(); + log() << " theirTime: " << theirTime; return StatusWith<RollBackLocalOperations::RollbackCommonPoint>( ErrorCodes::NoMatchingDocument, "RS100 reached beginning of remote oplog [1]"); } |