diff options
author | Mathias Stearn <mathias@10gen.com> | 2010-11-02 15:29:31 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2010-11-02 17:13:15 -0400 |
commit | 6c5553c4c9ef89e5c4b31e84ac9a7cc7100653a8 (patch) | |
tree | 7f58602ff79b966bf1921b201bdc51306ae7e658 | |
parent | 9514cc8ce75fbc81870b5821bbdb483fcd57b81b (diff) | |
download | mongo-6c5553c4c9ef89e5c4b31e84ac9a7cc7100653a8.tar.gz |
Support more mixed-case cmd names in mongos SERVER-2053
-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 91563d2b9be..80d5cc98510 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; @@ -438,7 +438,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; @@ -517,7 +517,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; |