diff options
author | James Wahlin <james@mongodb.com> | 2018-03-12 15:52:10 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-03-14 12:04:30 -0400 |
commit | 8727cdfc81358fa829cb86153606b84efca4edfd (patch) | |
tree | de4e06f772684611663f0923db5761fda9468ae9 /src/mongo/db/read_concern.cpp | |
parent | ebbd763514514d3ed77c25477c61d71df0d91420 (diff) | |
download | mongo-8727cdfc81358fa829cb86153606b84efca4edfd.tar.gz |
SERVER-33722 readConcern snapshot should return an error for metadata changes
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r-- | src/mongo/db/read_concern.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp index 4e8c04440f8..132680d37d1 100644 --- a/src/mongo/db/read_concern.cpp +++ b/src/mongo/db/read_concern.cpp @@ -284,7 +284,8 @@ Status waitForReadConcern(OperationContext* opCtx, if (atClusterTime) { - fassert(39345, opCtx->recoveryUnit()->selectSnapshot(atClusterTime->asTimestamp())); + fassert(39345, + opCtx->recoveryUnit()->setPointInTimeReadTimestamp(atClusterTime->asTimestamp())); return Status::OK(); } |