summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/move_primary_coordinator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/move_primary_coordinator.cpp')
-rw-r--r--src/mongo/db/s/move_primary_coordinator.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/db/s/move_primary_coordinator.cpp b/src/mongo/db/s/move_primary_coordinator.cpp
index e6fb1b958ae..04afaf3d810 100644
--- a/src/mongo/db/s/move_primary_coordinator.cpp
+++ b/src/mongo/db/s/move_primary_coordinator.cpp
@@ -375,12 +375,11 @@ StatusWith<Shard::CommandResponse> MovePrimaryCoordinator::cloneDataToRecipient(
return CommandHelpers::appendMajorityWriteConcern(commandBuilder.obj());
}();
- return toShard->runCommandWithFixedRetryAttempts(
- opCtx,
- ReadPreferenceSetting(ReadPreference::PrimaryOnly),
- NamespaceString::kAdminDb.toString(),
- cloneCommand,
- Shard::RetryPolicy::kNotIdempotent);
+ return toShard->runCommand(opCtx,
+ ReadPreferenceSetting(ReadPreference::PrimaryOnly),
+ NamespaceString::kAdminDb.toString(),
+ cloneCommand,
+ Shard::RetryPolicy::kNoRetry);
}
bool MovePrimaryCoordinator::checkClonedData(Shard::CommandResponse cloneResponse) const {