diff options
author | samantharitter <samantha.ritter@10gen.com> | 2016-09-13 13:07:32 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2016-09-13 13:13:15 -0400 |
commit | 7c3878adaf73736c33c7f65b718d8b5705c36142 (patch) | |
tree | 6d35cbb1e0701097c1d781009a3e818de74493a9 /src/mongo/client/connection_pool.cpp | |
parent | bb4ab61013c56be2d1a036b6e90a60209b3ca974 (diff) | |
download | mongo-7c3878adaf73736c33c7f65b718d8b5705c36142.tar.gz |
SERVER-25151 Honor 'ssl' option in URIs passed to the shell
Diffstat (limited to 'src/mongo/client/connection_pool.cpp')
-rw-r--r-- | src/mongo/client/connection_pool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/client/connection_pool.cpp b/src/mongo/client/connection_pool.cpp index b70acd25daf..c53f1d5a272 100644 --- a/src/mongo/client/connection_pool.cpp +++ b/src/mongo/client/connection_pool.cpp @@ -31,6 +31,7 @@ #include "mongo/client/connection_pool.h" #include "mongo/client/connpool.h" +#include "mongo/client/mongo_uri.h" #include "mongo/db/auth/authorization_manager_global.h" #include "mongo/db/auth/internal_user_auth.h" #include "mongo/executor/network_connection_hook.h" @@ -172,6 +173,7 @@ ConnectionPool::ConnectionList::iterator ConnectionPool::acquireConnection( conn.reset(new DBClientConnection( false, // auto reconnect 0, // socket timeout + {}, // MongoURI [this, target](const executor::RemoteCommandResponse& isMasterReply) { return _hook->validateHost(target, isMasterReply); })); |