summaryrefslogtreecommitdiff
path: root/client/connpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/connpool.h')
-rw-r--r--client/connpool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/connpool.h b/client/connpool.h
index 8698c2390dc..e7f59d6b721 100644
--- a/client/connpool.h
+++ b/client/connpool.h
@@ -57,6 +57,9 @@ namespace mongo {
void done( DBClientBase * c );
void flush();
+
+ static void setMaxPerHost( unsigned max ) { _maxPerHost = max; }
+ static unsigned getMaxPerHost() { return _maxPerHost; }
private:
struct StoredConnection {
@@ -71,6 +74,8 @@ namespace mongo {
std::stack<StoredConnection> _pool;
long long _created;
ConnectionString::ConnectionType _type;
+
+ static unsigned _maxPerHost;
};
class DBConnectionHook {