summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-08-03 15:54:57 -0400
committerWaley Chen <waleycz@gmail.com>2016-08-03 15:54:57 -0400
commit05e1c33649e08ec3736121254da7b29a73934788 (patch)
tree591de8a744ed1e31535038474247102e540c209d /src/mongo/db/s
parent1aeb9f04c0cdaaa4832ada812797b50456986baf (diff)
downloadmongo-05e1c33649e08ec3736121254da7b29a73934788.tar.gz
SERVER-24067 TaskExecutor RemoteCommandCallbackArgs should include elapsedMS and metadata
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
index 500b11e57e7..08721b06419 100644
--- a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
+++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
@@ -467,7 +467,7 @@ void MigrationChunkClonerSourceLegacy::_cleanup(OperationContext* txn) {
}
StatusWith<BSONObj> MigrationChunkClonerSourceLegacy::_callRecipient(const BSONObj& cmdObj) {
- StatusWith<executor::RemoteCommandResponse> responseStatus(
+ executor::RemoteCommandResponse responseStatus(
Status{ErrorCodes::InternalError, "Uninitialized value"});
auto executor = grid.getExecutorPool()->getArbitraryExecutor();
@@ -485,15 +485,15 @@ StatusWith<BSONObj> MigrationChunkClonerSourceLegacy::_callRecipient(const BSONO
executor->wait(scheduleStatus.getValue());
if (!responseStatus.isOK()) {
- return responseStatus.getStatus();
+ return responseStatus.status;
}
- Status commandStatus = getStatusFromCommandResult(responseStatus.getValue().data);
+ Status commandStatus = getStatusFromCommandResult(responseStatus.data);
if (!commandStatus.isOK()) {
return commandStatus;
}
- return responseStatus.getValue().data.getOwned();
+ return responseStatus.data.getOwned();
}
Status MigrationChunkClonerSourceLegacy::_storeCurrentLocs(OperationContext* txn) {