diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-06-19 18:14:15 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-06-28 11:57:04 -0400 |
commit | e777062a8a4a6084472039e8d1d4008f42f777fb (patch) | |
tree | 8b1d6621062a6265a8baf3db676ed42e6d09394f /src/mongo/rpc/op_msg_rpc_impls.h | |
parent | 4d3756aca8409150628e8c62712f6ca10616d2cb (diff) | |
download | mongo-e777062a8a4a6084472039e8d1d4008f42f777fb.tar.gz |
SERVER-29734 Merge body and metadata in OP_QUERY reply handling
Diffstat (limited to 'src/mongo/rpc/op_msg_rpc_impls.h')
-rw-r--r-- | src/mongo/rpc/op_msg_rpc_impls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/rpc/op_msg_rpc_impls.h b/src/mongo/rpc/op_msg_rpc_impls.h index b6b3bab1073..67149810d04 100644 --- a/src/mongo/rpc/op_msg_rpc_impls.h +++ b/src/mongo/rpc/op_msg_rpc_impls.h @@ -37,6 +37,7 @@ namespace rpc { class OpMsgReply final : public rpc::ReplyInterface { public: + explicit OpMsgReply(const Message* message) : _msg(OpMsg::parseOwned(*message)) {} explicit OpMsgReply(OpMsg msg) : _msg(std::move(msg)) {} const BSONObj& getMetadata() const override { return _msg.body; |