summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_aggregate.cpp
diff options
context:
space:
mode:
authorJiawei Yang <jiawei.yang@mongodb.com>2023-04-04 20:32:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-05 00:35:47 +0000
commit6b0141d1559164e212f66d9b62909b9d61df01c8 (patch)
tree6fcc974f40a8b29678b40ff900448bff8cca6ac4 /src/mongo/s/query/cluster_aggregate.cpp
parent50acdda3c992e7bace5f0dd560fc94966a7aa870 (diff)
downloadmongo-6b0141d1559164e212f66d9b62909b9d61df01c8.tar.gz
SERVER-66587 rename isEnabledAndIgnoreFCV to isEnabledAndIgnoreFCVUnsafe
Diffstat (limited to 'src/mongo/s/query/cluster_aggregate.cpp')
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp
index 6130a80c1fa..02a41e64b17 100644
--- a/src/mongo/s/query/cluster_aggregate.cpp
+++ b/src/mongo/s/query/cluster_aggregate.cpp
@@ -541,10 +541,11 @@ Status ClusterAggregate::runAggregate(OperationContext* opCtx,
"passthrough from mongos",
nonChangeStreamLite.allowedToPassthroughFromMongos());
ShardId shardId(std::string(request.getPassthroughToShard()->getShard()));
+ // (Ignore FCV check): This is in mongos so we expect to ignore FCV.
uassert(6273803,
"$_passthroughToShard not supported for queries against config replica set",
shardId != ShardId::kConfigServerId ||
- gFeatureFlagCatalogShard.isEnabledAndIgnoreFCV());
+ gFeatureFlagCatalogShard.isEnabledAndIgnoreFCVUnsafe());
// This is an aggregation pipeline started internally, so it is not eligible for
// sampling.
const bool eligibleForSampling = false;