summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_aggregate.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2023-02-22 19:49:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-23 00:22:25 +0000
commit09fe46995dca6375632632f5fc334035359db870 (patch)
tree463cf1b01b1c1de5b1ab7684c294b50b3a65013e /src/mongo/s/query/cluster_aggregate.cpp
parent24f148eec2575aff086f596075441cbfde79b9bc (diff)
downloadmongo-09fe46995dca6375632632f5fc334035359db870.tar.gz
SERVER-73865 Use config shard name for the config server
Diffstat (limited to 'src/mongo/s/query/cluster_aggregate.cpp')
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp
index e4cea383b32..867e70d5a50 100644
--- a/src/mongo/s/query/cluster_aggregate.cpp
+++ b/src/mongo/s/query/cluster_aggregate.cpp
@@ -37,6 +37,7 @@
#include "mongo/db/api_parameters.h"
#include "mongo/db/auth/authorization_session.h"
#include "mongo/db/catalog/collection_uuid_mismatch_info.h"
+#include "mongo/db/catalog_shard_feature_flag_gen.h"
#include "mongo/db/client.h"
#include "mongo/db/commands.h"
#include "mongo/db/curop.h"
@@ -536,7 +537,8 @@ Status ClusterAggregate::runAggregate(OperationContext* opCtx,
ShardId shardId(std::string(request.getPassthroughToShard()->getShard()));
uassert(6273803,
"$_passthroughToShard not supported for queries against config replica set",
- shardId != ShardId::kConfigServerId);
+ shardId != ShardId::kConfigServerId ||
+ gFeatureFlagCatalogShard.isEnabledAndIgnoreFCV());
// This is an aggregation pipeline started internally, so it is not eligible for
// sampling.
const bool eligibleForSampling = false;