summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/legacy_request.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-06-09 19:20:07 -0400
committerMathias Stearn <mathias@10gen.com>2017-06-19 17:08:35 -0400
commit1babec6a705c242628a765935ac9d98b56a41218 (patch)
tree1b917e39f921cce0a2cd41db170ea6c22e6348bc /src/mongo/rpc/legacy_request.cpp
parenta9a849b21ced693f2345d4507ee14541818244d9 (diff)
downloadmongo-1babec6a705c242628a765935ac9d98b56a41218.tar.gz
SERVER-29564 BSONObjBuilder can now be seeded with a BSONObj prefix
This will avoid copying whenever it is safe.
Diffstat (limited to 'src/mongo/rpc/legacy_request.cpp')
-rw-r--r--src/mongo/rpc/legacy_request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/legacy_request.cpp b/src/mongo/rpc/legacy_request.cpp
index 9d5beae3af2..8247c7d3923 100644
--- a/src/mongo/rpc/legacy_request.cpp
+++ b/src/mongo/rpc/legacy_request.cpp
@@ -55,7 +55,7 @@ OpMsgRequest opMsgRequestFromLegacyRequest(const Message& message) {
auto bodyAndMetadata = rpc::upconvertRequestMetadata(qm.query, qm.queryOptions);
return OpMsgRequest::fromDBAndBody(
- ns.db(), std::get<0>(bodyAndMetadata), std::get<1>(bodyAndMetadata));
+ ns.db(), std::move(std::get<0>(bodyAndMetadata)), std::get<1>(bodyAndMetadata));
}
} // namespace rpc