summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/command_request.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-08-24 19:01:49 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-08-24 19:01:49 -0400
commitf480380df5107c2204ebbd250282dec18cc2a20d (patch)
tree44a21ea502be97fdb51d04c9d3dcdaa259fc87c2 /src/mongo/rpc/command_request.cpp
parent246fd9b8c35ed500f556687e07ae3eb339819ae0 (diff)
downloadmongo-f480380df5107c2204ebbd250282dec18cc2a20d.tar.gz
SERVER-18668 remove some pessimizing and redundant moves
Diffstat (limited to 'src/mongo/rpc/command_request.cpp')
-rw-r--r--src/mongo/rpc/command_request.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/rpc/command_request.cpp b/src/mongo/rpc/command_request.cpp
index 961c4ba7d93..aec10f6fcd7 100644
--- a/src/mongo/rpc/command_request.cpp
+++ b/src/mongo/rpc/command_request.cpp
@@ -89,8 +89,8 @@ CommandRequest::CommandRequest(const Message* message) : _message(message) {
(_commandName.size() >= kMinCommandNameLength) &&
(_commandName.size() <= kMaxCommandNameLength));
- _metadata = std::move(uassertStatusOK(cur.readAndAdvance<Validated<BSONObj>>()).val);
- _commandArgs = std::move(uassertStatusOK(cur.readAndAdvance<Validated<BSONObj>>()).val);
+ _metadata = uassertStatusOK(cur.readAndAdvance<Validated<BSONObj>>()).val;
+ _commandArgs = uassertStatusOK(cur.readAndAdvance<Validated<BSONObj>>()).val;
_inputDocs = DocumentRange{cur.data(), messageEnd};
}