summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2022-07-12 11:16:37 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-14 15:09:17 +0000
commit1bf56f5542cd8f66c0f7283dc658b028d1e190fe (patch)
tree79cd888bb58f74ccdce6bf0570b4f5809ce6df90
parent00d0a908862771c4ded8d0492bfe3793affe6c10 (diff)
downloadmongo-1bf56f5542cd8f66c0f7283dc658b028d1e190fe.tar.gz
SERVER-67992 Use operation timer tracker in fle mongos crud processing
-rw-r--r--src/mongo/db/fle_crud.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/fle_crud.cpp b/src/mongo/db/fle_crud.cpp
index 9846d2165df..18eeeeb8e7c 100644
--- a/src/mongo/db/fle_crud.cpp
+++ b/src/mongo/db/fle_crud.cpp
@@ -42,6 +42,7 @@
#include "mongo/db/auth/authorization_session.h"
#include "mongo/db/dbdirectclient.h"
#include "mongo/db/namespace_string.h"
+#include "mongo/db/operation_time_tracker.h"
#include "mongo/db/ops/write_ops_gen.h"
#include "mongo/db/ops/write_ops_parsers.h"
#include "mongo/db/query/collation/collator_factory_interface.h"
@@ -115,7 +116,8 @@ void replyToResponse(OperationContext* opCtx,
// committed. The Transaction API propagates the OpTime from the commit transaction onto the
// current thread so grab it from TLS and change the OpTime on the reply.
//
- response->setLastOp(repl::ReplClientInfo::forClient(opCtx->getClient()).getLastOp());
+ response->setLastOp({OperationTimeTracker::get(opCtx)->getMaxOperationTime().asTimestamp(),
+ repl::OpTime::kUninitializedTerm});
}
void responseToReply(const BatchedCommandResponse& response,