summaryrefslogtreecommitdiff
path: root/s/commands_public.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-11-02 15:29:31 -0400
committerMathias Stearn <mathias@10gen.com>2010-11-02 17:02:44 -0400
commit0f118c6b82f561975d38d9ceff1a79ec1a56cdc9 (patch)
treece5a086c7d50cbc7de0051958a9eba539006bce3 /s/commands_public.cpp
parent0f6f7a615374461e897fe83e0255d09c9de8873f (diff)
downloadmongo-0f118c6b82f561975d38d9ceff1a79ec1a56cdc9.tar.gz
Support more mixed-case cmd names in mongos SERVER-2053
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r--s/commands_public.cpp6
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;