summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/test_commands.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-03-14 15:54:13 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-03-14 17:58:13 -0400
commit99de297d275339d7ff2f0a38530298cdf8f73fa4 (patch)
tree3ba1cad1be89e33add6ee03d38433ba69d44515c /src/mongo/db/commands/test_commands.cpp
parentb5ef3780e6956b51659e953080d783f67ca31b64 (diff)
downloadmongo-99de297d275339d7ff2f0a38530298cdf8f73fa4.tar.gz
SERVER-33892 Separate test_commands_enabled library
Diffstat (limited to 'src/mongo/db/commands/test_commands.cpp')
-rw-r--r--src/mongo/db/commands/test_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/test_commands.cpp b/src/mongo/db/commands/test_commands.cpp
index 6ffca594ad4..51f1a72db62 100644
--- a/src/mongo/db/commands/test_commands.cpp
+++ b/src/mongo/db/commands/test_commands.cpp
@@ -299,7 +299,7 @@ public:
// ----------------------------
MONGO_INITIALIZER(RegisterEmptyCappedCmd)(InitializerContext* context) {
- if (Command::testCommandsEnabled) {
+ if (getTestCommandsEnabled()) {
// Leaked intentionally: a Command registers itself when constructed.
new CapTrunc();
new CmdSleep();