diff options
Diffstat (limited to 'src/mongo/db/pipeline/parsed_exclusion_projection.h')
-rw-r--r-- | src/mongo/db/pipeline/parsed_exclusion_projection.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mongo/db/pipeline/parsed_exclusion_projection.h b/src/mongo/db/pipeline/parsed_exclusion_projection.h index 8f64ac5258e..feb868f08ca 100644 --- a/src/mongo/db/pipeline/parsed_exclusion_projection.h +++ b/src/mongo/db/pipeline/parsed_exclusion_projection.h @@ -97,7 +97,8 @@ private: */ class ParsedExclusionProjection : public ParsedAggregationProjection { public: - ParsedExclusionProjection() : ParsedAggregationProjection(), _root(new ExclusionNode()) {} + ParsedExclusionProjection(const boost::intrusive_ptr<ExpressionContext>& expCtx) + : ParsedAggregationProjection(expCtx), _root(new ExclusionNode()) {} ProjectionType getType() const final { return ProjectionType::kExclusion; @@ -108,8 +109,8 @@ public: /** * Parses the projection specification given by 'spec', populating internal data structures. */ - void parse(const boost::intrusive_ptr<ExpressionContext>& expCtx, const BSONObj& spec) final { - parse(expCtx, spec, _root.get(), 0); + void parse(const BSONObj& spec) final { + parse(spec, _root.get(), 0); } /** @@ -134,10 +135,7 @@ private: * Traverses 'spec' and parses each field. Adds any excluded fields at this level to 'node', * and recurses on any sub-objects. */ - void parse(const boost::intrusive_ptr<ExpressionContext>& expCtx, - const BSONObj& spec, - ExclusionNode* node, - size_t depth); + void parse(const BSONObj& spec, ExclusionNode* node, size_t depth); // The ExclusionNode tree does most of the execution work once constructed. |