diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2020-03-30 16:44:24 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-30 21:02:42 +0000 |
commit | 83ce74a769bca2a73f99a3e21f8bfa3209bd2586 (patch) | |
tree | 0be1474693fae68a3b3f763cc64900d9116973bf /src/mongo/executor | |
parent | a1e3df295c30533361ecf84e47ed86d61421c276 (diff) | |
download | mongo-83ce74a769bca2a73f99a3e21f8bfa3209bd2586.tar.gz |
Revert "SERVER-46972 Create test-only command for establishing egress to another node"
This reverts commit 87aacb9b7b8fb5cbddfd14d0d309965bf3352d72.
Diffstat (limited to 'src/mongo/executor')
-rw-r--r-- | src/mongo/executor/network_interface.h | 10 | ||||
-rw-r--r-- | src/mongo/executor/network_interface_mock.h | 2 | ||||
-rw-r--r-- | src/mongo/executor/network_interface_tl.cpp | 12 | ||||
-rw-r--r-- | src/mongo/executor/network_interface_tl.h | 5 |
4 files changed, 0 insertions, 29 deletions
diff --git a/src/mongo/executor/network_interface.h b/src/mongo/executor/network_interface.h index 1a5c35aa594..d269fb2443f 100644 --- a/src/mongo/executor/network_interface.h +++ b/src/mongo/executor/network_interface.h @@ -233,16 +233,6 @@ public: */ virtual void dropConnections(const HostAndPort& hostAndPort) = 0; - /** - * Acquire a connection and subsequently release it. - * If status is not OK, the connection will be dropped, - * otherwise the connection will be returned to the pool. - */ - virtual void testEgress(const HostAndPort& hostAndPort, - transport::ConnectSSLMode sslMode, - Milliseconds timeout, - Status status) = 0; - protected: NetworkInterface(); }; diff --git a/src/mongo/executor/network_interface_mock.h b/src/mongo/executor/network_interface_mock.h index bb16bd397ec..c67ee4c58a1 100644 --- a/src/mongo/executor/network_interface_mock.h +++ b/src/mongo/executor/network_interface_mock.h @@ -139,8 +139,6 @@ public: void dropConnections(const HostAndPort&) override {} - void testEgress(const HostAndPort&, transport::ConnectSSLMode, Milliseconds, Status) override {} - //////////////////////////////////////////////////////////////////////////////// // // Methods for simulating network operations and the passage of time. diff --git a/src/mongo/executor/network_interface_tl.cpp b/src/mongo/executor/network_interface_tl.cpp index d710caaa802..a988ef76420 100644 --- a/src/mongo/executor/network_interface_tl.cpp +++ b/src/mongo/executor/network_interface_tl.cpp @@ -520,18 +520,6 @@ Status NetworkInterfaceTL::startCommand(const TaskExecutor::CallbackHandle& cbHa return Status::OK(); } -void NetworkInterfaceTL::testEgress(const HostAndPort& hostAndPort, - transport::ConnectSSLMode sslMode, - Milliseconds timeout, - Status status) { - auto handle = _pool->get(hostAndPort, sslMode, timeout).get(); - if (status.isOK()) { - handle->indicateSuccess(); - } else { - handle->indicateFailure(status); - } -} - Future<RemoteCommandResponse> NetworkInterfaceTL::CommandState::sendRequest(size_t reqId) { auto requestState = requestManager->getRequest(reqId); invariant(requestState); diff --git a/src/mongo/executor/network_interface_tl.h b/src/mongo/executor/network_interface_tl.h index 942814473be..34bec18a411 100644 --- a/src/mongo/executor/network_interface_tl.h +++ b/src/mongo/executor/network_interface_tl.h @@ -94,11 +94,6 @@ public: void dropConnections(const HostAndPort& hostAndPort) override; - void testEgress(const HostAndPort& hostAndPort, - transport::ConnectSSLMode sslMode, - Milliseconds timeout, - Status status) override; - private: struct RequestState; struct RequestManager; |