summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp b/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp
index a08e0d32677..7c1e55eaf5d 100644
--- a/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp
+++ b/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp
@@ -132,12 +132,12 @@ public:
cmdBuilder.append("writeConcern", kMajorityWriteConcern.toBSON());
auto configShard = Grid::get(txn)->shardRegistry()->getConfigShard();
- auto cmdResponseStatus =
- uassertStatusOK(configShard->runCommand(txn,
- kPrimaryOnlyReadPreference,
- "admin",
- cmdBuilder.obj(),
- Shard::RetryPolicy::kIdempotent));
+ auto cmdResponseStatus = uassertStatusOK(
+ configShard->runCommandWithFixedRetryAttempts(txn,
+ kPrimaryOnlyReadPreference,
+ "admin",
+ cmdBuilder.obj(),
+ Shard::RetryPolicy::kIdempotent));
uassertStatusOK(cmdResponseStatus.commandStatus);
return true;
}