summaryrefslogtreecommitdiff
path: root/src/mongo/executor/thread_pool_task_executor.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-03-23 10:23:58 -0400
committerJudah Schvimer <judah@mongodb.com>2017-03-23 10:23:58 -0400
commit5014eade5aa8c6ce258bbe785d2c3c8c1d0e2198 (patch)
tree89d1b3151da4110b9037ed8c1071718fbf477abc /src/mongo/executor/thread_pool_task_executor.h
parentdea0ff9c2f1dd175aabce90a41c8e4d50e282401 (diff)
downloadmongo-5014eade5aa8c6ce258bbe785d2c3c8c1d0e2198.tar.gz
SERVER-28430 Expose dropConnections() method on ConnectionPool through the NetworkInterface
Diffstat (limited to 'src/mongo/executor/thread_pool_task_executor.h')
-rw-r--r--src/mongo/executor/thread_pool_task_executor.h5
1 files changed, 5 insertions, 0 deletions
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;