summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2019-02-28 13:38:37 -0500
committerMaria van Keulen <maria@mongodb.com>2019-03-19 19:33:08 -0400
commitd8d3d3ab1cef37bcc6f65182463b83eaf4669e17 (patch)
treed40a098c2b9fcb6b4a09c3b88057cbf7e01a137a /src/mongo/db/write_concern.cpp
parentf094ef24969b20a4483e0211d82887655cc133e8 (diff)
downloadmongo-d8d3d3ab1cef37bcc6f65182463b83eaf4669e17.tar.gz
SERVER-40080 report last applied and last durable wall clock times
Diffstat (limited to 'src/mongo/db/write_concern.cpp')
-rw-r--r--src/mongo/db/write_concern.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/write_concern.cpp b/src/mongo/db/write_concern.cpp
index f7afc2bb6ed..5b5fd9222f9 100644
--- a/src/mongo/db/write_concern.cpp
+++ b/src/mongo/db/write_concern.cpp
@@ -198,9 +198,9 @@ Status waitForWriteConcern(OperationContext* opCtx,
if (replCoord->getReplicationMode() != repl::ReplicationCoordinator::Mode::modeNone) {
// Wait for ops to become durable then update replication system's
// knowledge of this.
- OpTime appliedOpTime = replCoord->getMyLastAppliedOpTime();
+ auto appliedOpTimeAndWallTime = replCoord->getMyLastAppliedOpTimeAndWallTime();
opCtx->recoveryUnit()->waitUntilDurable();
- replCoord->setMyLastDurableOpTimeForward(appliedOpTime);
+ replCoord->setMyLastDurableOpTimeAndWallTimeForward(appliedOpTimeAndWallTime);
} else {
opCtx->recoveryUnit()->waitUntilDurable();
}