diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-05-20 13:36:29 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-05-20 13:36:29 -0400 |
commit | ecec906288814519103f7d50dff5475dec969edb (patch) | |
tree | 778cc00d815a7ec4f0156b668343cc0e1798b69a /client/connpool.h | |
parent | b35be1cbb4279e4cddab19e81aafcb7a97cc9d1e (diff) | |
download | mongo-ecec906288814519103f7d50dff5475dec969edb.tar.gz |
fix connection pooling a bit
Diffstat (limited to 'client/connpool.h')
-rw-r--r-- | client/connpool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/connpool.h b/client/connpool.h index 4084d23cb9c..b0ba1d91efa 100644 --- a/client/connpool.h +++ b/client/connpool.h @@ -23,6 +23,8 @@ namespace mongo { + class Shard; + struct PoolForHost { PoolForHost() : created(0){} @@ -115,6 +117,9 @@ namespace mongo { : _host( host ) , _conn( conn ){ } + ScopedDbConnection(const Shard& shard ); + ScopedDbConnection(const Shard* shard ); + string getHost() const { return _host; } /** Force closure of the connection. You should call this if you leave it in |