summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.h
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2016-11-29 20:01:18 -0500
committerJonathan Reams <jbreams@mongodb.com>2016-12-08 10:44:05 -0500
commitd55eb9d186f3039695a4d710116e79ad04536409 (patch)
treed7eeb820a9365d9266f926969177c05a9413e300 /src/mongo/client/connpool.h
parente91795212e7f274db6eb66efd5bbad8f144cdf32 (diff)
downloadmongo-d55eb9d186f3039695a4d710116e79ad04536409.tar.gz
SERVER-27210 Allow shell to connect to replicasets with ssl=true in URI
Diffstat (limited to 'src/mongo/client/connpool.h')
-rw-r--r--src/mongo/client/connpool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/client/connpool.h b/src/mongo/client/connpool.h
index 683270d0021..342bc0e2ae6 100644
--- a/src/mongo/client/connpool.h
+++ b/src/mongo/client/connpool.h
@@ -33,6 +33,7 @@
#include <stack>
#include "mongo/client/dbclientinterface.h"
+#include "mongo/client/mongo_uri.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/util/background.h"
#include "mongo/util/concurrency/mutex.h"
@@ -227,6 +228,7 @@ public:
DBClientBase* get(const std::string& host, double socketTimeout = 0);
DBClientBase* get(const ConnectionString& host, double socketTimeout = 0);
+ DBClientBase* get(const MongoURI& uri, double socketTimeout = 0);
/**
* Gets the number of connections available in the pool.
@@ -344,6 +346,7 @@ public:
*/
explicit ScopedDbConnection(const std::string& host, double socketTimeout = 0);
explicit ScopedDbConnection(const ConnectionString& host, double socketTimeout = 0);
+ explicit ScopedDbConnection(const MongoURI& host, double socketTimeout = 0);
ScopedDbConnection() : _host(""), _conn(0), _socketTimeout(0) {}