summaryrefslogtreecommitdiff
path: root/src/mongo/executor/task_executor_pool.h
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2015-11-20 18:31:32 -0500
committersamantharitter <samantha.ritter@10gen.com>2015-12-14 15:39:39 -0500
commit7c67e25f37853c60c106d2cf08eca1b81c4133ae (patch)
tree17ac78dad87d4a200de9e51caacaf80152ef3994 /src/mongo/executor/task_executor_pool.h
parent30d55cccf89160749c401e19fdc9872e24b01ef2 (diff)
downloadmongo-7c67e25f37853c60c106d2cf08eca1b81c4133ae.tar.gz
SERVER-21597 Fix connPoolStats to work with many NetworkInterfaces
Diffstat (limited to 'src/mongo/executor/task_executor_pool.h')
-rw-r--r--src/mongo/executor/task_executor_pool.h10
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;