summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-11-21 12:25:54 -0500
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-11-21 12:25:54 -0500
commit470c30273c479c5ab139de0d38e016f95c589c49 (patch)
tree1b8fa734567a6976c4980bb6ca4885b13af6ed8a /src/mongo/db/read_concern.cpp
parenta094c5b4b4783895d5fe168541bd97103a0d05f5 (diff)
downloadmongo-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.cpp5
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();
}