diff options
author | David Storch <david.storch@mongodb.com> | 2021-10-01 13:24:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-01 14:08:31 +0000 |
commit | fe4cf6134b16f102591053d6f4fe11e5cc0eb3ec (patch) | |
tree | 559991d99827a8b3252e2fdfb14b90a548de0793 /src/mongo/client/dbclient_base.h | |
parent | 0950600446ee8030132bacc9c00eb4ebca411500 (diff) | |
download | mongo-fe4cf6134b16f102591053d6f4fe11e5cc0eb3ec.tar.gz |
SERVER-58210 Eliminate unnecessary RPC protocol negotiation code
Diffstat (limited to 'src/mongo/client/dbclient_base.h')
-rw-r--r-- | src/mongo/client/dbclient_base.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/client/dbclient_base.h b/src/mongo/client/dbclient_base.h index 5d339afc130..ad86f30a6b9 100644 --- a/src/mongo/client/dbclient_base.h +++ b/src/mongo/client/dbclient_base.h @@ -50,7 +50,6 @@ #include "mongo/rpc/message.h" #include "mongo/rpc/metadata.h" #include "mongo/rpc/op_msg.h" -#include "mongo/rpc/protocol.h" #include "mongo/rpc/unique_message.h" #include "mongo/transport/message_compressor_manager.h" #include "mongo/transport/session.h" @@ -99,9 +98,6 @@ public: virtual std::string getServerAddress() const = 0; - rpc::ProtocolSet getClientRPCProtocols() const; - rpc::ProtocolSet getServerRPCProtocols() const; - /** * Reconnect if needed and allowed. */ @@ -757,11 +753,6 @@ protected: virtual void _auth(const BSONObj& params); /** - * Should be set by subclasses during connection. - */ - void _setServerRPCProtocols(rpc::ProtocolSet serverProtocols); - - /** * Controls how chatty the client is about network errors & such. See log.h. */ const logv2::LogSeverity _logLevel; @@ -781,9 +772,6 @@ private: auth::RunCommandHook _makeAuthRunCommandHook(); - // The rpc protocol the remote server(s) support. - rpc::ProtocolSet _serverRPCProtocols{rpc::supports::kOpMsgOnly}; - rpc::RequestMetadataWriter _metadataWriter; rpc::ReplyMetadataReader _metadataReader; |