summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_runner_impl.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2015-07-08 17:47:48 -0400
committerBenety Goh <benety@mongodb.com>2015-07-09 10:06:02 -0400
commitcc2c70f5108b28155e7efa34061559c425578d72 (patch)
tree7de0e6cacab7c90e8b53bc22b7567495087d38a4 /src/mongo/client/remote_command_runner_impl.cpp
parentf316ff5af270da92c63f412c2238fa1e5b6e599d (diff)
downloadmongo-cc2c70f5108b28155e7efa34061559c425578d72.tar.gz
SERVER-19307 fixed missing metadata in remote command response
Diffstat (limited to 'src/mongo/client/remote_command_runner_impl.cpp')
-rw-r--r--src/mongo/client/remote_command_runner_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/remote_command_runner_impl.cpp b/src/mongo/client/remote_command_runner_impl.cpp
index a81c622e6d9..aa001b3f3cd 100644
--- a/src/mongo/client/remote_command_runner_impl.cpp
+++ b/src/mongo/client/remote_command_runner_impl.cpp
@@ -255,7 +255,7 @@ StatusWith<RemoteCommandResponse> RemoteCommandRunnerImpl::runCommand(
return StatusWith<RemoteCommandResponse>(
RemoteCommandResponse(std::move(output),
- commandResponse->getCommandReply().getOwned(),
+ commandResponse->getMetadata().getOwned(),
Milliseconds(requestFinishDate - requestStartDate)));
} catch (const DBException& ex) {
return StatusWith<RemoteCommandResponse>(ex.toStatus());