summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-05-24 16:37:12 -0400
committerMathias Stearn <mathias@10gen.com>2017-05-30 12:57:53 -0400
commit3dc6ba1ad91727189c70ad41afdc446c76c81306 (patch)
tree9ffc02f51aa06ea17994f65d0e48494513671023
parentde91bafda0b4b5b7886f2c43c454b63a58ed90bc (diff)
downloadmongo-3dc6ba1ad91727189c70ad41afdc446c76c81306.tar.gz
SERVER-29364 rpc::OpMsgReply should have owned BSON in the body
-rw-r--r--src/mongo/rpc/factory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/factory.cpp b/src/mongo/rpc/factory.cpp
index f84896bf094..b8b1853c799 100644
--- a/src/mongo/rpc/factory.cpp
+++ b/src/mongo/rpc/factory.cpp
@@ -69,7 +69,7 @@ std::unique_ptr<RequestBuilderInterface> makeRequestBuilder(Protocol proto) {
std::unique_ptr<ReplyInterface> makeReply(const Message* unownedMessage) {
switch (unownedMessage->operation()) {
case mongo::dbMsg:
- return stdx::make_unique<OpMsgReply>(OpMsg::parse(*unownedMessage));
+ return stdx::make_unique<OpMsgReply>(OpMsg::parseOwned(*unownedMessage));
case mongo::opReply:
return stdx::make_unique<LegacyReply>(unownedMessage);
case mongo::dbCommandReply: