diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-11-21 12:25:54 -0500 |
---|---|---|
committer | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-11-21 12:25:54 -0500 |
commit | 470c30273c479c5ab139de0d38e016f95c589c49 (patch) | |
tree | 1b8fa734567a6976c4980bb6ca4885b13af6ed8a /src/mongo/db/read_concern.cpp | |
parent | a094c5b4b4783895d5fe168541bd97103a0d05f5 (diff) | |
download | mongo-470c30273c479c5ab139de0d38e016f95c589c49.tar.gz |
SERVER-31304: Refactor away SnapshotName.
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r-- | src/mongo/db/read_concern.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp index 4a11f36908f..afae793f6e8 100644 --- a/src/mongo/db/read_concern.cpp +++ b/src/mongo/db/read_concern.cpp @@ -256,8 +256,7 @@ Status waitForReadConcern(OperationContext* opCtx, auto pointInTime = readConcernArgs.getArgsPointInTime(); if (pointInTime) { - fassertStatusOK( - 39345, opCtx->recoveryUnit()->selectSnapshot(SnapshotName(pointInTime->asTimestamp()))); + fassertStatusOK(39345, opCtx->recoveryUnit()->selectSnapshot(pointInTime->asTimestamp())); } if (!readConcernArgs.isEmpty()) { @@ -296,7 +295,7 @@ Status waitForReadConcern(OperationContext* opCtx, // Wait until a snapshot is available. while (status == ErrorCodes::ReadConcernMajorityNotAvailableYet) { LOG(debugLevel) << "Snapshot not available yet."; - replCoord->waitUntilSnapshotCommitted(opCtx, SnapshotName::min()); + replCoord->waitUntilSnapshotCommitted(opCtx, Timestamp()); status = opCtx->recoveryUnit()->setReadFromMajorityCommittedSnapshot(); } |