diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2019-03-01 17:03:55 +0000 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2019-03-02 22:30:30 +0000 |
commit | 857d20826c15d6a8fccf0b2b364bf7c4791220a1 (patch) | |
tree | fadf76fb3637b14c211f36e3d9d2dcd814f8c9de /src/mongo/db/commands/test_commands_enabled.cpp | |
parent | 5a2c07a84088b215af9f1b1b160103cd8ecd76b3 (diff) | |
download | mongo-857d20826c15d6a8fccf0b2b364bf7c4791220a1.tar.gz |
SERVER-39907 Migrate enable test commands to IDL
Diffstat (limited to 'src/mongo/db/commands/test_commands_enabled.cpp')
-rw-r--r-- | src/mongo/db/commands/test_commands_enabled.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mongo/db/commands/test_commands_enabled.cpp b/src/mongo/db/commands/test_commands_enabled.cpp index 598e52e0606..670ef0567e3 100644 --- a/src/mongo/db/commands/test_commands_enabled.cpp +++ b/src/mongo/db/commands/test_commands_enabled.cpp @@ -30,25 +30,16 @@ #include "mongo/platform/basic.h" #include "mongo/db/commands/test_commands_enabled.h" - -#include "mongo/db/server_parameters.h" +#include "mongo/db/commands/test_commands_enabled_gen.h" namespace mongo { -namespace { - -bool enabled = false; - -ExportedServerParameter<bool, ServerParameterType::kStartupOnly> testCommandsParameter( - ServerParameterSet::getGlobal(), "enableTestCommands", &enabled); - -} // namespace bool getTestCommandsEnabled() { - return enabled; + return gEnableTestCommands; } void setTestCommandsEnabled(bool b) { - enabled = b; + gEnableTestCommands = b; } } // namespace mongo |