diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2016-11-29 20:01:18 -0500 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2016-12-08 10:44:05 -0500 |
commit | d55eb9d186f3039695a4d710116e79ad04536409 (patch) | |
tree | d7eeb820a9365d9266f926969177c05a9413e300 /src/mongo/client/replica_set_monitor.h | |
parent | e91795212e7f274db6eb66efd5bbad8f144cdf32 (diff) | |
download | mongo-d55eb9d186f3039695a4d710116e79ad04536409.tar.gz |
SERVER-27210 Allow shell to connect to replicasets with ssl=true in URI
Diffstat (limited to 'src/mongo/client/replica_set_monitor.h')
-rw-r--r-- | src/mongo/client/replica_set_monitor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/client/replica_set_monitor.h b/src/mongo/client/replica_set_monitor.h index 7b8f602cbce..93394f2386d 100644 --- a/src/mongo/client/replica_set_monitor.h +++ b/src/mongo/client/replica_set_monitor.h @@ -35,6 +35,7 @@ #include "mongo/base/disallow_copying.h" #include "mongo/base/string_data.h" +#include "mongo/client/mongo_uri.h" #include "mongo/executor/task_executor.h" #include "mongo/platform/atomic_word.h" #include "mongo/stdx/functional.h" @@ -68,6 +69,8 @@ public: */ ReplicaSetMonitor(StringData name, const std::set<HostAndPort>& seeds); + ReplicaSetMonitor(const MongoURI& uri); + /** * Schedules the initial refresh task into task executor. */ @@ -175,6 +178,8 @@ public: static std::shared_ptr<ReplicaSetMonitor> createIfNeeded(const std::string& name, const std::set<HostAndPort>& servers); + static std::shared_ptr<ReplicaSetMonitor> createIfNeeded(const MongoURI& uri); + /** * gets a cached Monitor per name. If the monitor is not found and createFromSeed is false, * it will return none. If createFromSeed is true, it will try to look up the last known |