summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-05-03 13:14:53 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-05-03 13:14:53 -0400
commitb7c013aa097b2d999ad3f942cdfce130558ef40f (patch)
tree04e39ddadd003bff628faeea9b7bf0fb812465e9 /src/mongo/db/read_concern.cpp
parent606b3930d1ca73f0184f4b29bb52917cc15e94cf (diff)
downloadmongo-b7c013aa097b2d999ad3f942cdfce130558ef40f.tar.gz
Revert "SERVER-28562 Move LogicalTime HMAC computation outside collection lock"
This reverts commit 1a6c4ecddfa4bb7a7275dc4b1bf5b79222aa4b72.
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r--src/mongo/db/read_concern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp
index 03b278b22be..2b3a0c7c184 100644
--- a/src/mongo/db/read_concern.cpp
+++ b/src/mongo/db/read_concern.cpp
@@ -126,7 +126,7 @@ Status waitForReadConcern(OperationContext* opCtx, const repl::ReadConcernArgs&
auto afterClusterTime = readConcernArgs.getArgsClusterTime();
if (afterClusterTime) {
- auto currentTime = LogicalClock::get(opCtx)->getClusterTime();
+ auto currentTime = LogicalClock::get(opCtx)->getClusterTime().getTime();
if (currentTime < *afterClusterTime) {
return {ErrorCodes::InvalidOptions,
"readConcern afterClusterTime must not be greater than clusterTime value"};