summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard_local_test.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/client/shard_local_test.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/client/shard_local_test.cpp')
-rw-r--r--src/mongo/s/client/shard_local_test.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mongo/s/client/shard_local_test.cpp b/src/mongo/s/client/shard_local_test.cpp
index 3bd026db9ed..409d8dba86d 100644
--- a/src/mongo/s/client/shard_local_test.cpp
+++ b/src/mongo/s/client/shard_local_test.cpp
@@ -103,21 +103,19 @@ StatusWith<Shard::CommandResponse> ShardLocalTest::runFindAndModifyRunCommand(Na
findAndModifyRequest.setWriteConcern(WriteConcernOptions(
WriteConcernOptions::kMajority, WriteConcernOptions::SyncMode::UNSET, Seconds(15)));
- return _shardLocal->runCommandWithFixedRetryAttempts(
- _txn.get(),
- ReadPreferenceSetting{ReadPreference::PrimaryOnly},
- nss.db().toString(),
- findAndModifyRequest.toBSON(),
- Shard::RetryPolicy::kNoRetry);
+ return _shardLocal->runCommand(_txn.get(),
+ ReadPreferenceSetting{ReadPreference::PrimaryOnly},
+ nss.db().toString(),
+ findAndModifyRequest.toBSON(),
+ Shard::RetryPolicy::kNoRetry);
}
StatusWith<std::vector<BSONObj>> ShardLocalTest::getIndexes(NamespaceString nss) {
- auto response = _shardLocal->runCommandWithFixedRetryAttempts(
- _txn.get(),
- ReadPreferenceSetting{ReadPreference::PrimaryOnly},
- nss.db().toString(),
- BSON("listIndexes" << nss.coll().toString()),
- Shard::RetryPolicy::kIdempotent);
+ auto response = _shardLocal->runCommand(_txn.get(),
+ ReadPreferenceSetting{ReadPreference::PrimaryOnly},
+ nss.db().toString(),
+ BSON("listIndexes" << nss.coll().toString()),
+ Shard::RetryPolicy::kIdempotent);
if (!response.isOK()) {
return response.getStatus();
}