summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_index_filter_cmd.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2022-08-03 18:14:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-10 04:10:22 +0000
commite008eb5f1e07997139ae3acd81152b6180e9e312 (patch)
tree70fe5516b13661f1007f1cc1bf4d3208b932e3e6 /src/mongo/s/commands/cluster_index_filter_cmd.cpp
parent1ad5ef42f5161542550262647ab79e85cc6a7cf2 (diff)
downloadmongo-e008eb5f1e07997139ae3acd81152b6180e9e312.tar.gz
SERVER-67459 Change BasicCommand to use DatabaseName
Diffstat (limited to 'src/mongo/s/commands/cluster_index_filter_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_index_filter_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_index_filter_cmd.cpp b/src/mongo/s/commands/cluster_index_filter_cmd.cpp
index eafe9b8b539..26fecc0ae19 100644
--- a/src/mongo/s/commands/cluster_index_filter_cmd.cpp
+++ b/src/mongo/s/commands/cluster_index_filter_cmd.cpp
@@ -87,10 +87,10 @@ public:
// Cluster plan cache command entry point.
bool run(OperationContext* opCtx,
- const std::string& dbname,
+ const DatabaseName& dbName,
const BSONObj& cmdObj,
BSONObjBuilder& result) override {
- const NamespaceString nss(parseNs({boost::none, dbname}, cmdObj));
+ const NamespaceString nss(parseNs(dbName, cmdObj));
const BSONObj query;
const auto routingInfo =
uassertStatusOK(Grid::get(opCtx)->catalogCache()->getCollectionRoutingInfo(opCtx, nss));