diff options
author | Misha Tyulenev <misha@mongodb.com> | 2017-10-23 14:17:56 -0400 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2017-10-23 14:19:03 -0400 |
commit | bb4381df8195f86da18a9204d14d225e858b5118 (patch) | |
tree | 9cd36743a1ba3b749be5c959059ce9248e616a2f /src/mongo/db/commands/oplog_note.cpp | |
parent | 43ce8f6cf255a88c62acef47df0694d764844d3c (diff) | |
download | mongo-bb4381df8195f86da18a9204d14d225e858b5118.tar.gz |
SERVER-31609 fix request synchronization for makeNoopWriteIfNeeded
Diffstat (limited to 'src/mongo/db/commands/oplog_note.cpp')
-rw-r--r-- | src/mongo/db/commands/oplog_note.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands/oplog_note.cpp b/src/mongo/db/commands/oplog_note.cpp index b9b25078852..d3efa60ac50 100644 --- a/src/mongo/db/commands/oplog_note.cpp +++ b/src/mongo/db/commands/oplog_note.cpp @@ -148,8 +148,9 @@ public: result, _performNoopWrite(opCtx, dataElement.Obj(), "appendOpLogNote")); } else { std::stringstream ss; - ss << "Requested maxClusterTime" << maxClusterTime.toString() - << " is less or equal to the last primary OpTime: " << lastAppliedOpTime.toString(); + ss << "Requested maxClusterTime" << LogicalTime(maxClusterTime).toString() + << " is less or equal to the last primary OpTime: " + << LogicalTime(lastAppliedOpTime).toString(); return appendCommandStatus(result, {ErrorCodes::StaleClusterTime, ss.str()}); } } |