summaryrefslogtreecommitdiff
path: root/src/mongo/shell/dbshell.cpp
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2019-05-09 00:49:42 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2019-05-09 00:49:42 -0400
commit1b8a9f5dc5c3314042b55e7415a2a25045b32a94 (patch)
tree90170ef90a95ec36a601f03db09f6184a556dcd3 /src/mongo/shell/dbshell.cpp
parentfb97757aed27a719ca48e0794f29006dec1a7dac (diff)
downloadmongo-1b8a9f5dc5c3314042b55e7415a2a25045b32a94.tar.gz
Revert "SERVER-40567 benchRun support for pipeline updates"r4.1.11
This reverts commit c24b5c1df7d946dd1c931f5c93c7098c9cf8545d.
Diffstat (limited to 'src/mongo/shell/dbshell.cpp')
-rw-r--r--src/mongo/shell/dbshell.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp
index f7ff703b665..633a99d8fc5 100644
--- a/src/mongo/shell/dbshell.cpp
+++ b/src/mongo/shell/dbshell.cpp
@@ -46,7 +46,6 @@
#include "mongo/client/mongo_uri.h"
#include "mongo/db/auth/sasl_command_constants.h"
#include "mongo/db/client.h"
-#include "mongo/db/commands/test_commands_enabled.h"
#include "mongo/db/log_process_details.h"
#include "mongo/db/server_options.h"
#include "mongo/logger/console_appender.h"
@@ -106,15 +105,6 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(SetFeatureCompatibilityVersion42, ("EndStar
ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo42);
return Status::OK();
}
-
-// Initialize the testCommandsEnabled server parameter to true since the mongo shell does not have
-// any test-only commands that could cause harm to the server, and it may be necessary to enable
-// this to test certain features, for example through benchRun (see SERVER-40419).
-MONGO_INITIALIZER_WITH_PREREQUISITES(EnableShellTestCommands, ("EndStartupOptionSetup"))
-(InitializerContext* context) {
- setTestCommandsEnabled(true);
- return Status::OK();
-}
const auto kAuthParam = "authSource"s;
/**