summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_list_databases_cmd.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2016-08-26 17:47:07 -0400
committerSpencer T Brody <spencer@mongodb.com>2016-08-26 18:23:45 -0400
commit7614c0eb2449eb4ec22d21b677177124d61f1888 (patch)
tree270f40e904bec17cbb30f696450e3401cfe03172 /src/mongo/s/commands/cluster_list_databases_cmd.cpp
parentff52022e5cd7ff7c75daf24c8760f0377785ba1e (diff)
downloadmongo-7614c0eb2449eb4ec22d21b677177124d61f1888.tar.gz
SERVER-25832 Rename Shard::runCommand to Shard::runCommandWithFixedRetryAttempts
Diffstat (limited to 'src/mongo/s/commands/cluster_list_databases_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_list_databases_cmd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/cluster_list_databases_cmd.cpp b/src/mongo/s/commands/cluster_list_databases_cmd.cpp
index 7ea4cd7e8fc..9151d244bfe 100644
--- a/src/mongo/s/commands/cluster_list_databases_cmd.cpp
+++ b/src/mongo/s/commands/cluster_list_databases_cmd.cpp
@@ -101,12 +101,12 @@ public:
}
const auto s = shardStatus.getValue();
- auto response = uassertStatusOK(
- s->runCommand(txn,
- ReadPreferenceSetting{ReadPreference::PrimaryPreferred},
- "admin",
- BSON("listDatabases" << 1),
- Shard::RetryPolicy::kIdempotent));
+ auto response = uassertStatusOK(s->runCommandWithFixedRetryAttempts(
+ txn,
+ ReadPreferenceSetting{ReadPreference::PrimaryPreferred},
+ "admin",
+ BSON("listDatabases" << 1),
+ Shard::RetryPolicy::kIdempotent));
uassertStatusOK(response.commandStatus);
BSONObj x = std::move(response.response);