summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp b/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
index 0bcc8ad6e2f..0ff6eacabf6 100644
--- a/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
+++ b/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
@@ -112,12 +112,12 @@ public:
// Forward to config shard, which will forward to all shards.
auto configShard = Grid::get(txn)->shardRegistry()->getConfigShard();
- auto response =
- configShard->runCommand(txn,
- ReadPreferenceSetting{ReadPreference::PrimaryOnly},
- dbname,
- BSON("_configsvrSetFeatureCompatibilityVersion" << version),
- Shard::RetryPolicy::kIdempotent);
+ auto response = configShard->runCommandWithFixedRetryAttempts(
+ txn,
+ ReadPreferenceSetting{ReadPreference::PrimaryOnly},
+ dbname,
+ BSON("_configsvrSetFeatureCompatibilityVersion" << version),
+ Shard::RetryPolicy::kIdempotent);
uassertStatusOK(response);
uassertStatusOK(response.getValue().commandStatus);