summaryrefslogtreecommitdiff
path: root/src/mongo/db/fle_crud.cpp
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@mongodb.com>2023-04-18 10:52:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-18 12:09:05 +0000
commit7cc71f7d5f29a5850a4d186b9554df3dcb407117 (patch)
tree068faa351ea01c29118b09a0b84b82d119c5e141 /src/mongo/db/fle_crud.cpp
parent87824ece4511770a9a3d34b89cf544de7596dd77 (diff)
downloadmongo-7cc71f7d5f29a5850a4d186b9554df3dcb407117.tar.gz
SERVER-76222 Avoid temporary allocations of DatabaseName
Diffstat (limited to 'src/mongo/db/fle_crud.cpp')
-rw-r--r--src/mongo/db/fle_crud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/fle_crud.cpp b/src/mongo/db/fle_crud.cpp
index ed7e1be568c..f8c6a24794b 100644
--- a/src/mongo/db/fle_crud.cpp
+++ b/src/mongo/db/fle_crud.cpp
@@ -1507,7 +1507,7 @@ std::vector<std::vector<FLEEdgeCountInfo>> FLEQueryInterfaceImpl::getTags(
getCountsCmd.setTokens(toTagSets(tokensSets));
getCountsCmd.setQueryType(queryTypeTranslation(type));
- auto response = _txnClient.runCommandSync(DatabaseName{nss.db()}, getCountsCmd.toBSON({}));
+ auto response = _txnClient.runCommandSync(nss.dbName(), getCountsCmd.toBSON({}));
auto status = getStatusFromWriteCommandReply(response);
uassertStatusOK(status);