summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2022-08-17 21:59:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-23 19:04:14 +0000
commitcd1b7ce13eb583946482b5eeba3b58c0ad308d16 (patch)
tree3a713da288d0988f57281bfcb54a3ba9a4c586df /src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
parent35f5a6ea3fdbddccb2f08b1f63fad64066ba605e (diff)
downloadmongo-cd1b7ce13eb583946482b5eeba3b58c0ad308d16.tar.gz
SERVER-68421 Remove CommandHelper::parseNsCollectionRequired(StringData dbname, const BSONObj& cmdObj)
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 81afeef46ab..d01690787ee 100644
--- a/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
+++ b/src/mongo/s/commands/cluster_find_and_modify_cmd.cpp
@@ -377,7 +377,7 @@ public:
const OpMsgRequest& request,
ExplainOptions::Verbosity verbosity,
rpc::ReplyBuilderInterface* result) const override {
- std::string dbName = request.getDatabase().toString();
+ const DatabaseName dbName(request.getValidatedTenantId(), request.getDatabase());
const BSONObj& cmdObj = [&]() {
// Check whether the query portion needs to be rewritten for FLE.
auto findAndModifyRequest = write_ops::FindAndModifyCommandRequest::parse(