summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/parsed_aggregation_projection.h
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2017-05-08 16:36:32 -0400
committerJames Wahlin <james.wahlin@10gen.com>2017-05-09 06:50:30 -0400
commit79c2c2d340982da8b669cd7c3aa6b958dbf56263 (patch)
tree638966f593b22a6e3a1de2851a4e1df2959480bb /src/mongo/db/pipeline/parsed_aggregation_projection.h
parent7d90084649608b3acc35ea290cce879783df12dc (diff)
downloadmongo-79c2c2d340982da8b669cd7c3aa6b958dbf56263.tar.gz
SERVER-28651 Don't hold Document ref across group iterationsr3.5.7
Diffstat (limited to 'src/mongo/db/pipeline/parsed_aggregation_projection.h')
-rw-r--r--src/mongo/db/pipeline/parsed_aggregation_projection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/parsed_aggregation_projection.h b/src/mongo/db/pipeline/parsed_aggregation_projection.h
index 227663a1342..dfda0f66756 100644
--- a/src/mongo/db/pipeline/parsed_aggregation_projection.h
+++ b/src/mongo/db/pipeline/parsed_aggregation_projection.h
@@ -150,7 +150,7 @@ public:
/**
* Apply the projection transformation.
*/
- Document applyTransformation(Document input) {
+ Document applyTransformation(const Document& input) {
return applyProjection(input);
}
@@ -161,7 +161,7 @@ protected:
/**
* Apply the projection to 'input'.
*/
- virtual Document applyProjection(Document input) const = 0;
+ virtual Document applyProjection(const Document& input) const = 0;
boost::intrusive_ptr<ExpressionContext> _expCtx;
};