diff options
author | Matt Broadstone <mbroadst@mongodb.com> | 2023-04-18 10:52:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-18 12:09:05 +0000 |
commit | 7cc71f7d5f29a5850a4d186b9554df3dcb407117 (patch) | |
tree | 068faa351ea01c29118b09a0b84b82d119c5e141 /src/mongo/db/s/query_analysis_writer_test.cpp | |
parent | 87824ece4511770a9a3d34b89cf544de7596dd77 (diff) | |
download | mongo-7cc71f7d5f29a5850a4d186b9554df3dcb407117.tar.gz |
SERVER-76222 Avoid temporary allocations of DatabaseName
Diffstat (limited to 'src/mongo/db/s/query_analysis_writer_test.cpp')
-rw-r--r-- | src/mongo/db/s/query_analysis_writer_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/s/query_analysis_writer_test.cpp b/src/mongo/db/s/query_analysis_writer_test.cpp index a83a9d52c03..de6f687079e 100644 --- a/src/mongo/db/s/query_analysis_writer_test.cpp +++ b/src/mongo/db/s/query_analysis_writer_test.cpp @@ -210,8 +210,7 @@ protected: void assertTTLIndexExists(const NamespaceString& nss, const std::string& name) const { DBDirectClient client(operationContext()); BSONObj result; - client.runCommand( - DatabaseName{nss.db()}, BSON("listIndexes" << nss.coll().toString()), result); + client.runCommand(nss.dbName(), BSON("listIndexes" << nss.coll().toString()), result); auto indexes = result.getObjectField("cursor").getField("firstBatch").Array(); auto iter = indexes.begin(); |