diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_fsync_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_fsync_cmd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_fsync_cmd.cpp b/src/mongo/s/commands/cluster_fsync_cmd.cpp index 15e20e2c436..6de6d08021f 100644 --- a/src/mongo/s/commands/cluster_fsync_cmd.cpp +++ b/src/mongo/s/commands/cluster_fsync_cmd.cpp @@ -93,12 +93,12 @@ public: } const auto s = shardStatus.getValue(); - auto response = - uassertStatusOK(s->runCommand(txn, - ReadPreferenceSetting{ReadPreference::PrimaryOnly}, - "admin", - BSON("fsync" << 1), - Shard::RetryPolicy::kIdempotent)); + auto response = uassertStatusOK(s->runCommandWithFixedRetryAttempts( + txn, + ReadPreferenceSetting{ReadPreference::PrimaryOnly}, + "admin", + BSON("fsync" << 1), + Shard::RetryPolicy::kIdempotent)); uassertStatusOK(response.commandStatus); BSONObj x = std::move(response.response); |