diff options
Diffstat (limited to 'src/mongo/db/pipeline/parsed_exclusion_projection.cpp')
-rw-r--r-- | src/mongo/db/pipeline/parsed_exclusion_projection.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/parsed_exclusion_projection.cpp b/src/mongo/db/pipeline/parsed_exclusion_projection.cpp index e91bff4884c..de31a6cb7e4 100644 --- a/src/mongo/db/pipeline/parsed_exclusion_projection.cpp +++ b/src/mongo/db/pipeline/parsed_exclusion_projection.cpp @@ -56,9 +56,6 @@ void ParsedExclusionProjection::parse(const BSONObj& spec, ExclusionNode* node, for (auto elem : spec) { const auto fieldName = elem.fieldNameStringData(); - // A $ should have been detected by ParsedAggregationProjection before we get here. - invariant(fieldName[0] != '$'); - // Track whether the projection spec specifies a desired behavior for the _id field. idSpecified = idSpecified || fieldName == "_id"_sd || fieldName.startsWith("_id."_sd); |