summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2017-04-26 14:39:55 -0400
committerRandolph Tan <randolph@10gen.com>2017-05-03 10:47:37 -0400
commit1a6c4ecddfa4bb7a7275dc4b1bf5b79222aa4b72 (patch)
tree683414110da9fef4ba13373ffa9a49c087985369 /src/mongo/db/read_concern.cpp
parent1c44e48a50fc2cddbcb2d837a000187a1d84e34e (diff)
downloadmongo-1a6c4ecddfa4bb7a7275dc4b1bf5b79222aa4b72.tar.gz
SERVER-28562 Move LogicalTime HMAC computation outside collection lock
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 2b3a0c7c184..03b278b22be 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().getTime();
+ auto currentTime = LogicalClock::get(opCtx)->getClusterTime();
if (currentTime < *afterClusterTime) {
return {ErrorCodes::InvalidOptions,
"readConcern afterClusterTime must not be greater than clusterTime value"};