summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_aggregate.cpp
diff options
context:
space:
mode:
authorRishab Joshi <rishab.joshi@mongodb.com>2021-02-19 09:36:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-19 10:25:53 +0000
commit8330084d10b85bd736ce7c6b8c4f0005dcddfb7a (patch)
tree8e27ab1d44e7a7139cadfe7d1505612e02c53dc0 /src/mongo/s/query/cluster_aggregate.cpp
parentb785ca3a3d785814ac7201d5a7d52e718df7e689 (diff)
downloadmongo-8330084d10b85bd736ce7c6b8c4f0005dcddfb7a.tar.gz
SERVER-54072 Contains fixes for test document source allowance constrain for API strict.
Diffstat (limited to 'src/mongo/s/query/cluster_aggregate.cpp')
-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);
}