diff options
author | Randolph Tan <randolph@10gen.com> | 2021-10-04 18:46:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-04 19:12:51 +0000 |
commit | e80a562c2135ad6e0b79f41efb993e3485052ac0 (patch) | |
tree | e25316d48646f18646566ac750c283ff9957c867 /src/mongo/db/service_entry_point_common.cpp | |
parent | 150fe2c61dc165aff3b9fadea1e092dba71da97b (diff) | |
download | mongo-e80a562c2135ad6e0b79f41efb993e3485052ac0.tar.gz |
SERVER-46308 Use current committed snapshot time instead of last comm…
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index df094434a39..6d2793b1a3e 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -435,7 +435,8 @@ LogicalTime computeOperationTime(OperationContext* opCtx, LogicalTime startOpera // Note: ReadConcernArgs::getLevel returns kLocal if none was set. if (readConcernArgs.getLevel() == repl::ReadConcernLevel::kMajorityReadConcern) { - operationTime = LogicalTime(replCoord->getLastCommittedOpTime().getTimestamp()); + operationTime = + LogicalTime(replCoord->getCurrentCommittedSnapshotOpTime().getTimestamp()); } else { operationTime = LogicalTime(replCoord->getMyLastAppliedOpTime().getTimestamp()); } |