summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sharding_ddl_util.cpp
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2021-11-29 12:59:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-03 20:05:44 +0000
commit3242083daae059800badc55b6c4e050454fa6c70 (patch)
treeafaeea07469711ed8a667043896146692628d335 /src/mongo/db/s/sharding_ddl_util.cpp
parent6ef5da0c8cdce8a4398ad00ede82ffa674f4e62c (diff)
downloadmongo-3242083daae059800badc55b6c4e050454fa6c70.tar.gz
Revert "SERVER-60694 Move collMod to DDL coordinator infrastructure"
Diffstat (limited to 'src/mongo/db/s/sharding_ddl_util.cpp')
-rw-r--r--src/mongo/db/s/sharding_ddl_util.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mongo/db/s/sharding_ddl_util.cpp b/src/mongo/db/s/sharding_ddl_util.cpp
index c887ca96f02..09db3271b07 100644
--- a/src/mongo/db/s/sharding_ddl_util.cpp
+++ b/src/mongo/db/s/sharding_ddl_util.cpp
@@ -160,12 +160,11 @@ void linearizeCSRSReads(OperationContext* opCtx) {
ShardingCatalogClient::kMajorityWriteConcern));
}
-std::vector<AsyncRequestsSender::Response> sendAuthenticatedCommandToShards(
- OperationContext* opCtx,
- StringData dbName,
- const BSONObj& command,
- const std::vector<ShardId>& shardIds,
- const std::shared_ptr<executor::TaskExecutor>& executor) {
+void sendAuthenticatedCommandToShards(OperationContext* opCtx,
+ StringData dbName,
+ const BSONObj& command,
+ const std::vector<ShardId>& shardIds,
+ const std::shared_ptr<executor::TaskExecutor>& executor) {
// TODO SERVER-57519: remove the following scope
{
// Ensure ShardRegistry is initialized before using the AsyncRequestsSender that relies on
@@ -181,8 +180,7 @@ std::vector<AsyncRequestsSender::Response> sendAuthenticatedCommandToShards(
BSONObjBuilder bob(command);
rpc::writeAuthDataToImpersonatedUserMetadata(opCtx, &bob);
auto authenticatedCommand = bob.obj();
- return sharding_util::sendCommandToShards(
- opCtx, dbName, authenticatedCommand, shardIds, executor);
+ sharding_util::sendCommandToShards(opCtx, dbName, authenticatedCommand, shardIds, executor);
}
void removeTagsMetadataFromConfig(OperationContext* opCtx,