diff options
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r-- | s/commands_public.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/s/commands_public.cpp b/s/commands_public.cpp index 805e107c4bf..2b518828ac2 100644 --- a/s/commands_public.cpp +++ b/s/commands_public.cpp @@ -183,7 +183,7 @@ namespace mongo { class DBStatsCmd : public RunOnAllShardsCommand { public: - DBStatsCmd() : RunOnAllShardsCommand("dbstats") {} + DBStatsCmd() : RunOnAllShardsCommand("dbStats", "dbstats") {} virtual void aggregateResults(const vector<BSONObj>& results, BSONObjBuilder& output) { long long objects = 0; @@ -439,7 +439,7 @@ namespace mongo { class CollectionStats : public PublicGridCommand { public: - CollectionStats() : PublicGridCommand("collstats") { } + CollectionStats() : PublicGridCommand("collStats", "collstats") { } bool run(const string& dbName , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool){ string collection = cmdObj.firstElement().valuestrsafe(); string fullns = dbName + "." + collection; @@ -518,7 +518,7 @@ namespace mongo { class FindAndModifyCmd : public PublicGridCommand { public: - FindAndModifyCmd() : PublicGridCommand("findandmodify") { } + FindAndModifyCmd() : PublicGridCommand("findAndModify", "findandmodify") { } bool run(const string& dbName, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool){ string collection = cmdObj.firstElement().valuestrsafe(); string fullns = dbName + "." + collection; |