summaryrefslogtreecommitdiff
path: root/src/mongo/client/scoped_db_conn_test.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-10-22 10:34:51 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-10-30 15:47:26 -0400
commit791c412874ce87d9cc1eac75edce8116a9d40640 (patch)
treecdaaeaefd1d093d88ff9a5332a68a8e440b124fa /src/mongo/client/scoped_db_conn_test.cpp
parente62e2e71eff397caf22a0da13ac4669a8546b298 (diff)
downloadmongo-791c412874ce87d9cc1eac75edce8116a9d40640.tar.gz
SERVER-20609 do not heap allocate Message
Diffstat (limited to 'src/mongo/client/scoped_db_conn_test.cpp')
-rw-r--r--src/mongo/client/scoped_db_conn_test.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/client/scoped_db_conn_test.cpp b/src/mongo/client/scoped_db_conn_test.cpp
index b032ed2651c..bbc805dfbf2 100644
--- a/src/mongo/client/scoped_db_conn_test.cpp
+++ b/src/mongo/client/scoped_db_conn_test.cpp
@@ -119,10 +119,12 @@ public:
commandResponse.append("minWireVersion", WireVersion::RELEASE_2_4_AND_BEFORE);
}
- port->reply(m,
- *reply->setMetadata(rpc::makeEmptyMetadata())
- .setCommandReply(commandResponse.done())
- .done());
+
+ auto response = reply->setMetadata(rpc::makeEmptyMetadata())
+ .setCommandReply(commandResponse.done())
+ .done();
+
+ port->reply(m, response);
}
} dummyHandler;