summaryrefslogtreecommitdiff
path: root/src/mongo/s/query
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/query')
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp
index 1a2cdb8467f..7bd56463058 100644
--- a/src/mongo/s/query/cluster_aggregate.cpp
+++ b/src/mongo/s/query/cluster_aggregate.cpp
@@ -197,8 +197,6 @@ void updateHostsTargetedMetrics(OperationContext* opCtx,
void performAPIVersionChecks(const OperationContext* opCtx,
const AggregateCommand& request,
const LiteParsedPipeline& liteParsedPipeline) {
- invariant(opCtx);
-
liteParsedPipeline.validatePipelineStagesforAPIVersion(opCtx);
aggregation_request_helper::validateRequestForAPIVersion(opCtx, request);
}