diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-18 14:22:08 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-18 15:59:33 -0500 |
commit | 62fb9c0c504fc0e5321e05301f5bcff47c4ce714 (patch) | |
tree | daaf96c6a0d3680ca4bf3af5d06e7c5210cf0846 /src/mongo/db/commands.h | |
parent | 9503b50ba6255119cbfc21cac4d568e3254fb24b (diff) | |
download | mongo-62fb9c0c504fc0e5321e05301f5bcff47c4ce714.tar.gz |
Set ok:0 when command isn't found
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 62fd7725874..9ba64da2cd8 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -176,12 +176,12 @@ namespace mongo { BSONObj& cmdObj, BSONObjBuilder& result, bool fromRepl ); - // Set by command line. Controls whether or not testing-only commands should be available. - static int testCommandsEnabled; - private: // Helper for setting errmsg and ok field in command result object. - static void _finishExecCommand(BSONObjBuilder& result, bool ok, const std::string& errmsg); + static void appendCommandStatus(BSONObjBuilder& result, bool ok, const std::string& errmsg); + + // Set by command line. Controls whether or not testing-only commands should be available. + static int testCommandsEnabled; }; // This will be registered instead of the real implementations of any commands that don't work |