summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/parsed_exclusion_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_exclusion_projection.cpp
parent2e8e60bfef83ac9c7bf494b0f80977686cb1b772 (diff)
downloadmongo-5273c2bad7df58c44afdd677609b8656f399a906.tar.gz
SERVER-28651 Move agg var ownership to ExpressionContext
Diffstat (limited to 'src/mongo/db/pipeline/parsed_exclusion_projection.cpp')
-rw-r--r--src/mongo/db/pipeline/parsed_exclusion_projection.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/parsed_exclusion_projection.cpp b/src/mongo/db/pipeline/parsed_exclusion_projection.cpp
index ae3fa4ba2dc..51809826dfe 100644
--- a/src/mongo/db/pipeline/parsed_exclusion_projection.cpp
+++ b/src/mongo/db/pipeline/parsed_exclusion_projection.cpp
@@ -144,10 +144,7 @@ Document ParsedExclusionProjection::applyProjection(Document inputDoc) const {
return _root->applyProjection(inputDoc);
}
-void ParsedExclusionProjection::parse(const boost::intrusive_ptr<ExpressionContext>& expCtx,
- const BSONObj& spec,
- ExclusionNode* node,
- size_t depth) {
+void ParsedExclusionProjection::parse(const BSONObj& spec, ExclusionNode* node, size_t depth) {
for (auto elem : spec) {
const auto fieldName = elem.fieldNameStringData().toString();
@@ -192,7 +189,7 @@ void ParsedExclusionProjection::parse(const boost::intrusive_ptr<ExpressionConte
child = child->addOrGetChild(fullPath.fullPath());
}
- parse(expCtx, elem.Obj(), child, depth + 1);
+ parse(elem.Obj(), child, depth + 1);
break;
}
default: { MONGO_UNREACHABLE; }