diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-06-08 16:21:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-10 03:27:58 +0000 |
commit | 674a5f6015ca455f47af4a3b0ebed4b8a9281b8d (patch) | |
tree | 701caf90077a3c040940e78ad92678b1429b90db /src/mongo/db | |
parent | ac9c07e1014ec0ab28ec90522c8d5043c4bacbc8 (diff) | |
download | mongo-674a5f6015ca455f47af4a3b0ebed4b8a9281b8d.tar.gz |
SERVER-46726 Using testing proctor to control diagnostics
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/free_mon/free_mon_mongod.cpp | 7 | ||||
-rw-r--r-- | src/mongo/db/s/shard_filtering_metadata_refresh.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/s/txn_two_phase_commit_cmds.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 1 |
5 files changed, 4 insertions, 7 deletions
diff --git a/src/mongo/db/free_mon/free_mon_mongod.cpp b/src/mongo/db/free_mon/free_mon_mongod.cpp index f755e2f58da..bc33c921855 100644 --- a/src/mongo/db/free_mon/free_mon_mongod.cpp +++ b/src/mongo/db/free_mon/free_mon_mongod.cpp @@ -45,7 +45,6 @@ #include "mongo/bson/bsonobj.h" #include "mongo/bson/bsonobjbuilder.h" #include "mongo/bson/bsontypes.h" -#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/db_raii.h" #include "mongo/db/free_mon/free_mon_controller.h" #include "mongo/db/free_mon/free_mon_message.h" @@ -66,6 +65,7 @@ #include "mongo/util/concurrency/thread_pool.h" #include "mongo/util/future.h" #include "mongo/util/net/http_client.h" +#include "mongo/util/testing_proctor.h" namespace mongo { @@ -90,7 +90,7 @@ public: _executor = makeTaskExecutor(serviceContext); _executor->startup(); _client = HttpClient::create(); - _client->allowInsecureHTTP(getTestCommandsEnabled()); + _client->allowInsecureHTTP(TestingProctor::instance().isEnabled()); _client->setHeaders({"Content-Type: application/octet-stream", "Accept: application/octet-stream", "Expect:"}); @@ -312,8 +312,7 @@ void startFreeMonitoring(ServiceContext* serviceContext) { return; } - // Check for http, not https here because testEnabled may not be set yet - if (!getTestCommandsEnabled()) { + if (!TestingProctor::instance().isEnabled()) { uassert(50774, "ExportedFreeMonEndpointURL only supports https:// URLs", FreeMonEndpointURL.compare(0, 5, "https") == 0); diff --git a/src/mongo/db/s/shard_filtering_metadata_refresh.cpp b/src/mongo/db/s/shard_filtering_metadata_refresh.cpp index 270d2af9bd6..a8a79247214 100644 --- a/src/mongo/db/s/shard_filtering_metadata_refresh.cpp +++ b/src/mongo/db/s/shard_filtering_metadata_refresh.cpp @@ -36,7 +36,6 @@ #include "mongo/db/catalog/database_holder.h" #include "mongo/db/catalog_raii.h" #include "mongo/db/commands/feature_compatibility_version.h" -#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/operation_context.h" #include "mongo/db/s/collection_sharding_runtime.h" #include "mongo/db/s/database_sharding_state.h" diff --git a/src/mongo/db/s/txn_two_phase_commit_cmds.cpp b/src/mongo/db/s/txn_two_phase_commit_cmds.cpp index 9cc24d5a948..81da126ff96 100644 --- a/src/mongo/db/s/txn_two_phase_commit_cmds.cpp +++ b/src/mongo/db/s/txn_two_phase_commit_cmds.cpp @@ -33,6 +33,7 @@ #include "mongo/db/auth/authorization_session.h" #include "mongo/db/commands.h" +#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/commands/txn_two_phase_commit_cmds_gen.h" #include "mongo/db/repl/repl_client_info.h" #include "mongo/db/s/sharding_state.h" diff --git a/src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp b/src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp index 04a0e6dce92..ff470884b98 100644 --- a/src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp +++ b/src/mongo/db/s/wait_for_ongoing_chunk_splits_command.cpp @@ -32,7 +32,6 @@ #include "mongo/platform/basic.h" #include "mongo/db/commands.h" -#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/s/chunk_splitter.h" namespace mongo { diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index fa1e80051ac..7f558fe2a3f 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -43,7 +43,6 @@ #include "mongo/db/client.h" #include "mongo/db/command_can_run_here.h" #include "mongo/db/commands.h" -#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/commands/txn_cmds_gen.h" #include "mongo/db/curop.h" #include "mongo/db/curop_failpoint_helpers.h" |