diff options
Diffstat (limited to 'src/mongo/db/s/sharding_util.h')
-rw-r--r-- | src/mongo/db/s/sharding_util.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mongo/db/s/sharding_util.h b/src/mongo/db/s/sharding_util.h index 684568b0214..1a2c3c51eeb 100644 --- a/src/mongo/db/s/sharding_util.h +++ b/src/mongo/db/s/sharding_util.h @@ -34,6 +34,7 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/operation_context.h" #include "mongo/executor/task_executor.h" +#include "mongo/s/async_requests_sender.h" #include "mongo/s/shard_id.h" namespace mongo { @@ -51,11 +52,12 @@ void tellShardsToRefreshCollection(OperationContext* opCtx, /** * Generic utility to send a command to a list of shards. Throws if one of the commands fails. */ -void sendCommandToShards(OperationContext* opCtx, - StringData dbName, - const BSONObj& command, - const std::vector<ShardId>& shardIds, - const std::shared_ptr<executor::TaskExecutor>& executor); +std::vector<AsyncRequestsSender::Response> sendCommandToShards( + OperationContext* opCtx, + StringData dbName, + const BSONObj& command, + const std::vector<ShardId>& shardIds, + const std::shared_ptr<executor::TaskExecutor>& executor); } // namespace sharding_util } // namespace mongo |