diff options
Diffstat (limited to 'src/mongo/executor/task_executor_pool.cpp')
-rw-r--r-- | src/mongo/executor/task_executor_pool.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/executor/task_executor_pool.cpp b/src/mongo/executor/task_executor_pool.cpp index 2af37277a7c..89f0da22ed6 100644 --- a/src/mongo/executor/task_executor_pool.cpp +++ b/src/mongo/executor/task_executor_pool.cpp @@ -33,6 +33,7 @@ #include <algorithm> #include "mongo/db/server_parameters.h" +#include "mongo/executor/connection_pool_stats.h" #include "mongo/executor/task_executor.h" #include "mongo/util/processinfo.h" @@ -95,5 +96,14 @@ TaskExecutor* TaskExecutorPool::getFixedExecutor() { return _fixedExecutor.get(); } +void TaskExecutorPool::appendConnectionStats(ConnectionPoolStats* stats) const { + // Get stats from our fixed executor. + _fixedExecutor->appendConnectionStats(stats); + // Get stats from our pooled executors. + for (auto&& executor : _executors) { + executor->appendConnectionStats(stats); + } +} + } // namespace executor } // namespace mongo |