diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-02-13 14:28:31 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-02-15 11:33:38 -0500 |
commit | 31a2028d80848e1770bf91ced08bae9ca7139d58 (patch) | |
tree | 8dc81e94a7685c2c0d3931d7dc8026928729e94d /src/mongo/db/commands.cpp | |
parent | a09abdaa6c93c50d3b58ee97597baff96e02475b (diff) | |
download | mongo-31a2028d80848e1770bf91ced08bae9ca7139d58.tar.gz |
SERVER-8087 Make it possible to declare startup-only and runtime-only server parameters.
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r-- | src/mongo/db/commands.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 919630d33fc..87e9129e612 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -42,10 +42,11 @@ namespace mongo { int Command::testCommandsEnabled = 0;
namespace {
- // TODO: This should only be settable at the command line, not at runtime. Need SERVER-7778
ExportedServerParameter<int> testCommandsParameter(ServerParameterSet::getGlobal(),
"enableTestCommands",
- &Command::testCommandsEnabled);
+ &Command::testCommandsEnabled,
+ true,
+ false);
}
string Command::parseNsFullyQualified(const string& dbname, const BSONObj& cmdObj) const {
|