summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_rs.cpp
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/dbclient_rs.cpp
parentbb4ab61013c56be2d1a036b6e90a60209b3ca974 (diff)
downloadmongo-7c3878adaf73736c33c7f65b718d8b5705c36142.tar.gz
SERVER-25151 Honor 'ssl' option in URIs passed to the shell
Diffstat (limited to 'src/mongo/client/dbclient_rs.cpp')
-rw-r--r--src/mongo/client/dbclient_rs.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp
index 584d4c61f10..bd8ec5863c9 100644
--- a/src/mongo/client/dbclient_rs.cpp
+++ b/src/mongo/client/dbclient_rs.cpp
@@ -136,8 +136,12 @@ bool DBClientReplicaSet::_authPooledSecondaryConn = true;
DBClientReplicaSet::DBClientReplicaSet(const string& name,
const vector<HostAndPort>& servers,
StringData applicationName,
- double so_timeout)
- : _setName(name), _applicationName(applicationName.toString()), _so_timeout(so_timeout) {
+ double so_timeout,
+ MongoURI uri)
+ : _setName(name),
+ _applicationName(applicationName.toString()),
+ _so_timeout(so_timeout),
+ _uri(std::move(uri)) {
_rsm =
ReplicaSetMonitor::createIfNeeded(name, set<HostAndPort>(servers.begin(), servers.end()));
}