diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2022-08-03 18:14:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-10 04:10:22 +0000 |
commit | e008eb5f1e07997139ae3acd81152b6180e9e312 (patch) | |
tree | 70fe5516b13661f1007f1cc1bf4d3208b932e3e6 /src/mongo/s/commands/cluster_coll_stats_cmd.cpp | |
parent | 1ad5ef42f5161542550262647ab79e85cc6a7cf2 (diff) | |
download | mongo-e008eb5f1e07997139ae3acd81152b6180e9e312.tar.gz |
SERVER-67459 Change BasicCommand to use DatabaseName
Diffstat (limited to 'src/mongo/s/commands/cluster_coll_stats_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_coll_stats_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_coll_stats_cmd.cpp b/src/mongo/s/commands/cluster_coll_stats_cmd.cpp index fc879a34605..25b3e15b578 100644 --- a/src/mongo/s/commands/cluster_coll_stats_cmd.cpp +++ b/src/mongo/s/commands/cluster_coll_stats_cmd.cpp @@ -191,10 +191,10 @@ public: } 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 auto targeter = ChunkManagerTargeter(opCtx, nss); const auto cm = targeter.getRoutingInfo(); |