diff options
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 |