diff options
author | Dwight <dwight@10gen.com> | 2011-04-06 11:26:14 -0400 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2011-04-06 11:26:14 -0400 |
commit | 09795ae38a6b5814f6797c5d102f60382b4b944b (patch) | |
tree | d04441643a55380b01119f85e8b099ae7e0ec1ab /s/commands_public.cpp | |
parent | c4c8745b44f358dc263a3547aaf179a9ffdcd071 (diff) | |
download | mongo-09795ae38a6b5814f6797c5d102f60382b4b944b.tar.gz |
compact not allowed through mongos for now
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r-- | s/commands_public.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/s/commands_public.cpp b/s/commands_public.cpp index bfb91a784fb..5d2c8ef66ce 100644 --- a/s/commands_public.cpp +++ b/s/commands_public.cpp @@ -1034,14 +1034,21 @@ namespace mongo { class ApplyOpsCmd : public PublicGridCommand { public: ApplyOpsCmd() : PublicGridCommand( "applyOps" ) {} - virtual bool run(const string& dbName , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool) { errmsg = "applyOps not allowed through mongos"; return false; } - } applyOpsCmd; + class CompactCmd : public PublicGridCommand { + public: + CompactCmd() : PublicGridCommand( "compact" ) {} + virtual bool run(const string& dbName , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool) { + errmsg = "compact not allowed through mongos"; + return false; + } + } compactCmd; + } } |