diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp b/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp index a24c7a63e3b..89902d3bde0 100644 --- a/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp +++ b/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp @@ -117,12 +117,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; } |