summaryrefslogtreecommitdiff
path: root/src/mongo/s/config_server_client.cpp
diff options
context:
space:
mode:
authorDan Pasette <dan@mongodb.com>2016-08-26 23:32:30 -0400
committerDan Pasette <dan@mongodb.com>2016-08-26 23:32:30 -0400
commitf21afe8e60b5ab6f061613c3ee0f8ff9896e881a (patch)
treef9f4c15c13dfc9f4543cc46c38391b22ebdee373 /src/mongo/s/config_server_client.cpp
parent355ff243409c2a330d64f212d809609402e80bb9 (diff)
downloadmongo-f21afe8e60b5ab6f061613c3ee0f8ff9896e881a.tar.gz
Revert "SERVER-25832 Rename Shard::runCommand to Shard::runCommandWithFixedRetryAttempts"
This reverts commit 7614c0eb2449eb4ec22d21b677177124d61f1888.
Diffstat (limited to 'src/mongo/s/config_server_client.cpp')
-rw-r--r--src/mongo/s/config_server_client.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/s/config_server_client.cpp b/src/mongo/s/config_server_client.cpp
index ba3e09f3292..22dcff95810 100644
--- a/src/mongo/s/config_server_client.cpp
+++ b/src/mongo/s/config_server_client.cpp
@@ -51,7 +51,7 @@ Status moveChunk(OperationContext* txn,
bool waitForDelete) {
auto shardRegistry = Grid::get(txn)->shardRegistry();
auto shard = shardRegistry->getConfigShard();
- auto cmdResponseStatus = shard->runCommandWithFixedRetryAttempts(
+ auto cmdResponseStatus = shard->runCommand(
txn,
kPrimaryOnlyReadPreference,
"admin",
@@ -68,12 +68,12 @@ Status moveChunk(OperationContext* txn,
Status rebalanceChunk(OperationContext* txn, const ChunkType& chunk) {
auto shardRegistry = Grid::get(txn)->shardRegistry();
auto shard = shardRegistry->getConfigShard();
- auto cmdResponseStatus = shard->runCommandWithFixedRetryAttempts(
- txn,
- kPrimaryOnlyReadPreference,
- "admin",
- BalanceChunkRequest::serializeToRebalanceCommandForConfig(chunk),
- Shard::RetryPolicy::kNotIdempotent);
+ auto cmdResponseStatus =
+ shard->runCommand(txn,
+ kPrimaryOnlyReadPreference,
+ "admin",
+ BalanceChunkRequest::serializeToRebalanceCommandForConfig(chunk),
+ Shard::RetryPolicy::kNotIdempotent);
if (!cmdResponseStatus.isOK()) {
return cmdResponseStatus.getStatus();
}