diff options
author | Matt Cotter <matt.cotter@mongodb.com> | 2016-07-22 17:24:44 -0400 |
---|---|---|
committer | Matt Cotter <matt.cotter@mongodb.com> | 2016-09-27 17:07:42 -0400 |
commit | 8f7423be75dca29ca1bc14b6bcfb34a46b8fdc2f (patch) | |
tree | 56e3944aa1b977faada225637e31718574a3d0fc /src/mongo/executor/connection_pool.h | |
parent | 73365935a7d2026030a34d89463e72263fe8c25c (diff) | |
download | mongo-8f7423be75dca29ca1bc14b6bcfb34a46b8fdc2f.tar.gz |
SERVER-25218 add more information to connPoolStats
* group stats by pool
* fix tests that relied on broken behavior
Diffstat (limited to 'src/mongo/executor/connection_pool.h')
-rw-r--r-- | src/mongo/executor/connection_pool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/executor/connection_pool.h b/src/mongo/executor/connection_pool.h index 80817130ce9..a7b1428ca99 100644 --- a/src/mongo/executor/connection_pool.h +++ b/src/mongo/executor/connection_pool.h @@ -110,6 +110,7 @@ public: }; explicit ConnectionPool(std::unique_ptr<DependentTypeFactoryInterface> impl, + std::string name, Options options = Options{}); ~ConnectionPool(); @@ -123,6 +124,8 @@ public: private: void returnConnection(ConnectionInterface* connection); + std::string _name; + // Options are set at startup and never changed at run time, so these are // accessed outside the lock const Options _options; |