diff options
Diffstat (limited to 'src/mongo/executor/task_executor_pool.h')
-rw-r--r-- | src/mongo/executor/task_executor_pool.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/executor/task_executor_pool.h b/src/mongo/executor/task_executor_pool.h index 00a828b3c27..15319589c4e 100644 --- a/src/mongo/executor/task_executor_pool.h +++ b/src/mongo/executor/task_executor_pool.h @@ -36,6 +36,7 @@ namespace mongo { namespace executor { +struct ConnectionPoolStats; class TaskExecutor; /** @@ -101,6 +102,15 @@ public: */ TaskExecutor* getFixedExecutor(); + /** + * Appends connection information from all of the executors in the pool. + * + * NOTE: this method returns approximate stats. To avoid blocking operations on the + * pool, we don't lock for appendConnectionStats, so data gathered across connection pools + * will be from slightly different points in time. + */ + void appendConnectionStats(ConnectionPoolStats* stats) const; + private: AtomicUInt32 _counter; |