summaryrefslogtreecommitdiff
path: root/src/mongo/s/cluster_commands_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/cluster_commands_helpers.h')
-rw-r--r--src/mongo/s/cluster_commands_helpers.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/s/cluster_commands_helpers.h b/src/mongo/s/cluster_commands_helpers.h
index 1e3a9d91fbb..c1dcc2f1050 100644
--- a/src/mongo/s/cluster_commands_helpers.h
+++ b/src/mongo/s/cluster_commands_helpers.h
@@ -67,7 +67,8 @@ std::vector<AsyncRequestsSender::Response> gatherResponses(
StringData dbName,
const ReadPreferenceSetting& readPref,
Shard::RetryPolicy retryPolicy,
- const std::vector<AsyncRequestsSender::Request>& requests);
+ const std::vector<AsyncRequestsSender::Request>& requests,
+ const std::set<ErrorCodes::Error>& ignorableErrors = {});
/**
* Returns a copy of 'cmdObj' with 'version' appended.
@@ -134,7 +135,8 @@ std::vector<AsyncRequestsSender::Response> scatterGatherOnlyVersionIfUnsharded(
const NamespaceString& nss,
const BSONObj& cmdObj,
const ReadPreferenceSetting& readPref,
- Shard::RetryPolicy retryPolicy);
+ Shard::RetryPolicy retryPolicy,
+ const std::set<ErrorCodes::Error>& ignorableErrors = {});
/**
* Utility for dispatching commands against the primary of a database and attach the appropriate