diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-05-19 17:06:56 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-06-07 13:28:51 -0400 |
commit | 107327303755a830236bfef5827b543d88223b89 (patch) | |
tree | 25a9c9586fbcf1ba17651fe00abbd4a6bfebd929 /src/mongo/rpc/factory.h | |
parent | b89c05e65c3168cef9c813f3feca2b1a63621ca2 (diff) | |
download | mongo-107327303755a830236bfef5827b543d88223b89.tar.gz |
SERVER-29264 Kill off rpc::RequestInterface
Diffstat (limited to 'src/mongo/rpc/factory.h')
-rw-r--r-- | src/mongo/rpc/factory.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/rpc/factory.h b/src/mongo/rpc/factory.h index f2d4e2fd3cb..08b3ef0a8d1 100644 --- a/src/mongo/rpc/factory.h +++ b/src/mongo/rpc/factory.h @@ -29,6 +29,7 @@ #pragma once #include "mongo/rpc/protocol.h" +#include "mongo/util/net/op_msg.h" #include <memory> @@ -44,7 +45,6 @@ namespace rpc { class ReplyBuilderInterface; class ReplyInterface; class RequestBuilderInterface; -class RequestInterface; /** * Returns the appropriate concrete RequestBuilder. Throws if one cannot be chosen. @@ -61,10 +61,9 @@ std::unique_ptr<RequestBuilderInterface> makeRequestBuilder(Protocol proto); std::unique_ptr<ReplyInterface> makeReply(const Message* unownedMessage); /** - * Returns the appropriate concrete Request according to the contents of the message. - * Throws if one cannot be chosen. + * Parses the message (from any protocol) into an OpMsgRequest. */ -std::unique_ptr<RequestInterface> makeRequest(const Message* unownedMessage); +OpMsgRequest opMsgRequestFromAnyProtocol(const Message& unownedMessage); /** * Returns the appropriate concrete ReplyBuilder. |