diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2020-02-24 19:37:11 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-15 23:27:50 +0000 |
commit | e3b5f9046975f5e385d68ecf92f8d76d7278beab (patch) | |
tree | d38c2ffe4b929cc3175074145cfc6ab9f5baf6ed /src/mongo | |
parent | 21169a8fb3064c79a1045f743d04f56160feef87 (diff) | |
download | mongo-e3b5f9046975f5e385d68ecf92f8d76d7278beab.tar.gz |
SERVER-46393 Always check client last operation time when computing operationTime to append to the response
(cherry picked from commit 679d1e1028ddbdd1ac5778f3e0ab0cb3ffd5ee27)
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index a19e6e5ee68..40d52da8b51 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -302,10 +302,6 @@ LogicalTime computeOperationTime(OperationContext* opCtx, LogicalTime startOpera replCoord->getReplicationMode() == repl::ReplicationCoordinator::modeReplSet; invariant(isReplSet); - if (startOperationTime == LogicalTime::kUninitialized) { - return LogicalTime(replCoord->getMyLastAppliedOpTime().getTimestamp()); - } - auto operationTime = getClientOperationTime(opCtx); invariant(operationTime >= startOperationTime); |