summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2022-05-09 12:10:40 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-10 21:26:02 +0000
commitcc0335394bee5441350a36fd9351d5746a6000d8 (patch)
tree102494d25f5d39fe8d43fa05318966113c780df6 /src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
parent15aa9218aaed0b522b6c672cac6324c2a15458f8 (diff)
downloadmongo-cc0335394bee5441350a36fd9351d5746a6000d8.tar.gz
SERVER-66317 Make owned bson copies for txn api threads
Diffstat (limited to 'src/mongo/s/commands/cluster_find_and_modify_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_find_and_modify_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp b/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
index d3951cf19f1..2982ae57e56 100644
--- a/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
+++ b/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
@@ -378,7 +378,7 @@ public:
IDLParserErrorContext("ClusterFindAndModify"), request.body);
if (shouldDoFLERewrite(findAndModifyRequest)) {
auto newRequest = processFLEFindAndModifyExplainMongos(opCtx, findAndModifyRequest);
- return newRequest.toBSON(request.body);
+ return newRequest.first.toBSON(request.body);
} else {
return request.body;
}