From 5014eade5aa8c6ce258bbe785d2c3c8c1d0e2198 Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Thu, 23 Mar 2017 10:23:58 -0400 Subject: SERVER-28430 Expose dropConnections() method on ConnectionPool through the NetworkInterface --- src/mongo/executor/thread_pool_task_executor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mongo/executor/thread_pool_task_executor.h') diff --git a/src/mongo/executor/thread_pool_task_executor.h b/src/mongo/executor/thread_pool_task_executor.h index 2a499868a14..98298624b80 100644 --- a/src/mongo/executor/thread_pool_task_executor.h +++ b/src/mongo/executor/thread_pool_task_executor.h @@ -83,6 +83,11 @@ public: void appendConnectionStats(ConnectionPoolStats* stats) const override; + /** + * Drops all connections to the given host on the network interface. + */ + void dropConnections(const HostAndPort& hostAndPort); + private: class CallbackState; class EventState; -- cgit v1.2.1