diff options
author | Dan Pasette <dan@mongodb.com> | 2016-08-26 23:32:30 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2016-08-26 23:32:30 -0400 |
commit | f21afe8e60b5ab6f061613c3ee0f8ff9896e881a (patch) | |
tree | f9f4c15c13dfc9f4543cc46c38391b22ebdee373 /src/mongo/s/commands/cluster_user_management_commands.cpp | |
parent | 355ff243409c2a330d64f212d809609402e80bb9 (diff) | |
download | mongo-f21afe8e60b5ab6f061613c3ee0f8ff9896e881a.tar.gz |
Revert "SERVER-25832 Rename Shard::runCommand to Shard::runCommandWithFixedRetryAttempts"
This reverts commit 7614c0eb2449eb4ec22d21b677177124d61f1888.
Diffstat (limited to 'src/mongo/s/commands/cluster_user_management_commands.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_user_management_commands.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_user_management_commands.cpp b/src/mongo/s/commands/cluster_user_management_commands.cpp index 69aee76c4d3..177855c50f1 100644 --- a/src/mongo/s/commands/cluster_user_management_commands.cpp +++ b/src/mongo/s/commands/cluster_user_management_commands.cpp @@ -858,12 +858,12 @@ Status runUpgradeOnAllShards(OperationContext* txn, int maxSteps, BSONObjBuilder if (!shardStatus.isOK()) { return shardStatus.getStatus(); } - auto cmdResult = shardStatus.getValue()->runCommandWithFixedRetryAttempts( - txn, - ReadPreferenceSetting{ReadPreference::PrimaryOnly}, - "admin", - cmdObj, - Shard::RetryPolicy::kIdempotent); + auto cmdResult = + shardStatus.getValue()->runCommand(txn, + ReadPreferenceSetting{ReadPreference::PrimaryOnly}, + "admin", + cmdObj, + Shard::RetryPolicy::kIdempotent); auto status = cmdResult.isOK() ? std::move(cmdResult.getValue().commandStatus) : std::move(cmdResult.getStatus()); if (!status.isOK()) { |