diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-08-26 17:47:07 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-08-29 18:13:12 -0400 |
commit | 973a02dac92d3d192fd5e98011c4c4704356c3e2 (patch) | |
tree | 84546958e4e5ba49f4e2a2839e274bbb7233ec3e /src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp | |
parent | 3f7812c99ded16e6286e1fd40323e57c939797ed (diff) | |
download | mongo-973a02dac92d3d192fd5e98011c4c4704356c3e2.tar.gz |
SERVER-25832 Rename Shard::runCommand to Shard::runCommandWithFixedRetryAttempts
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; } |