summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2017-04-05 09:59:54 -0400
committerJames Wahlin <james.wahlin@10gen.com>2017-04-29 09:21:00 -0400
commit5273c2bad7df58c44afdd677609b8656f399a906 (patch)
tree0257684f5555293d72e07179c6b058081c247019 /src/mongo/db/pipeline/parsed_aggregation_projection.cpp
parent2e8e60bfef83ac9c7bf494b0f80977686cb1b772 (diff)
downloadmongo-5273c2bad7df58c44afdd677609b8656f399a906.tar.gz
SERVER-28651 Move agg var ownership to ExpressionContext
Diffstat (limited to 'src/mongo/db/pipeline/parsed_aggregation_projection.cpp')
-rw-r--r--src/mongo/db/pipeline/parsed_aggregation_projection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/parsed_aggregation_projection.cpp b/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
index 69b196faab3..26894147b17 100644
--- a/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
+++ b/src/mongo/db/pipeline/parsed_aggregation_projection.cpp
@@ -278,11 +278,11 @@ std::unique_ptr<ParsedAggregationProjection> ParsedAggregationProjection::create
// We can't use make_unique() here, since the branches have different types.
std::unique_ptr<ParsedAggregationProjection> parsedProject(
projectionType == ProjectionType::kInclusion
- ? static_cast<ParsedAggregationProjection*>(new ParsedInclusionProjection())
- : static_cast<ParsedAggregationProjection*>(new ParsedExclusionProjection()));
+ ? static_cast<ParsedAggregationProjection*>(new ParsedInclusionProjection(expCtx))
+ : static_cast<ParsedAggregationProjection*>(new ParsedExclusionProjection(expCtx)));
// Actually parse the specification.
- parsedProject->parse(expCtx, spec);
+ parsedProject->parse(spec);
return parsedProject;
}