summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_destination_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.cpp')
-rw-r--r--src/mongo/db/s/migration_destination_manager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.cpp b/src/mongo/db/s/migration_destination_manager.cpp
index 1b0f631eee5..426cbee3199 100644
--- a/src/mongo/db/s/migration_destination_manager.cpp
+++ b/src/mongo/db/s/migration_destination_manager.cpp
@@ -1234,8 +1234,11 @@ void MigrationDestinationManager::_migrateDriver(OperationContext* outerOpCtx,
WriteConcernResult ignoreResult;
auto latestOpTime =
repl::ReplClientInfo::forClient(outerOpCtx->getClient()).getLastOp();
- uassertStatusOK(waitForWriteConcern(
- outerOpCtx, latestOpTime, WriteConcerns::kMajorityWriteConcern, &ignoreResult));
+ uassertStatusOK(
+ waitForWriteConcern(outerOpCtx,
+ latestOpTime,
+ WriteConcerns::kMajorityWriteConcernShardingTimeout,
+ &ignoreResult));
});
timing->done(3);