summaryrefslogtreecommitdiff
path: root/src/mongo/client/connection_string.h
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2016-09-13 13:07:32 -0400
committersamantharitter <samantha.ritter@10gen.com>2016-09-13 13:13:15 -0400
commit7c3878adaf73736c33c7f65b718d8b5705c36142 (patch)
tree6d35cbb1e0701097c1d781009a3e818de74493a9 /src/mongo/client/connection_string.h
parentbb4ab61013c56be2d1a036b6e90a60209b3ca974 (diff)
downloadmongo-7c3878adaf73736c33c7f65b718d8b5705c36142.tar.gz
SERVER-25151 Honor 'ssl' option in URIs passed to the shell
Diffstat (limited to 'src/mongo/client/connection_string.h')
-rw-r--r--src/mongo/client/connection_string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/connection_string.h b/src/mongo/client/connection_string.h
index 245174794d9..e8fc8eb2637 100644
--- a/src/mongo/client/connection_string.h
+++ b/src/mongo/client/connection_string.h
@@ -40,6 +40,7 @@
namespace mongo {
class DBClientBase;
+class MongoURI;
/**
* ConnectionString handles parsing different ways to connect to mongo and determining method
@@ -118,7 +119,8 @@ public:
DBClientBase* connect(StringData applicationName,
std::string& errmsg,
- double socketTimeout = 0) const;
+ double socketTimeout = 0,
+ const MongoURI* uri = nullptr) const;
static StatusWith<ConnectionString> parse(const std::string& url);