diff options
author | Jason Zhang <jason.zhang@mongodb.com> | 2021-01-21 18:17:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-25 23:36:36 +0000 |
commit | 57aa9e6106905a8969af5b997e2b316ce2d71b62 (patch) | |
tree | aaccd931c426491393d596aea2d28f1cb938ed5a /src/mongo/client/dbclient_connection.h | |
parent | 2210368e6ef89de49491087750345197dcae96b8 (diff) | |
download | mongo-57aa9e6106905a8969af5b997e2b316ce2d71b62.tar.gz |
SERVER-53724 Make DBClient able to reauthenticate with x509 automatically when reconnecting for tenant migrations
Diffstat (limited to 'src/mongo/client/dbclient_connection.h')
-rw-r--r-- | src/mongo/client/dbclient_connection.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/client/dbclient_connection.h b/src/mongo/client/dbclient_connection.h index 845af96d900..8e6dcd313c0 100644 --- a/src/mongo/client/dbclient_connection.h +++ b/src/mongo/client/dbclient_connection.h @@ -115,7 +115,7 @@ public: bool connect(const HostAndPort& server, StringData applicationName, std::string& errmsg, - boost::optional<TransientSSLParams> transientSSLParams = boost::none); + boost::optional<TransientSSLParams> transientSSLParams); /** * Semantically equivalent to the previous connect method, but returns a Status @@ -125,7 +125,7 @@ public: */ virtual Status connect(const HostAndPort& server, StringData applicationName, - boost::optional<TransientSSLParams> transientSSLParams = boost::none); + boost::optional<TransientSSLParams> transientSSLParams); /** * This version of connect does not run 'isMaster' after creating a TCP connection to the @@ -135,7 +135,7 @@ public: * @param server The server to connect to. */ Status connectSocketOnly(const HostAndPort& server, - boost::optional<TransientSSLParams> transientSSLParams = boost::none); + boost::optional<TransientSSLParams> transientSSLParams); /** * Logs out the connection for the given database. @@ -334,6 +334,7 @@ protected: HostAndPort _serverAddress; std::string _resolvedAddress; std::string _applicationName; + boost::optional<TransientSSLParams> _transientSSLParams; void _checkConnection(); |