summaryrefslogtreecommitdiff
path: root/client/connpool.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-20 13:36:29 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-20 13:36:29 -0400
commitecec906288814519103f7d50dff5475dec969edb (patch)
tree778cc00d815a7ec4f0156b668343cc0e1798b69a /client/connpool.h
parentb35be1cbb4279e4cddab19e81aafcb7a97cc9d1e (diff)
downloadmongo-ecec906288814519103f7d50dff5475dec969edb.tar.gz
fix connection pooling a bit
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 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