diff options
author | James Wahlin <james.wahlin@10gen.com> | 2017-05-08 16:36:32 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2017-05-09 06:50:30 -0400 |
commit | 79c2c2d340982da8b669cd7c3aa6b958dbf56263 (patch) | |
tree | 638966f593b22a6e3a1de2851a4e1df2959480bb /src/mongo/db/pipeline/document_source_single_document_transformation.h | |
parent | 7d90084649608b3acc35ea290cce879783df12dc (diff) | |
download | mongo-79c2c2d340982da8b669cd7c3aa6b958dbf56263.tar.gz |
SERVER-28651 Don't hold Document ref across group iterationsr3.5.7
Diffstat (limited to 'src/mongo/db/pipeline/document_source_single_document_transformation.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_single_document_transformation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_single_document_transformation.h b/src/mongo/db/pipeline/document_source_single_document_transformation.h index 5e09b34e639..3b91a979046 100644 --- a/src/mongo/db/pipeline/document_source_single_document_transformation.h +++ b/src/mongo/db/pipeline/document_source_single_document_transformation.h @@ -53,7 +53,7 @@ public: class TransformerInterface { public: virtual ~TransformerInterface() = default; - virtual Document applyTransformation(Document input) = 0; + virtual Document applyTransformation(const Document& input) = 0; virtual void optimize() = 0; virtual Document serialize(boost::optional<ExplainOptions::Verbosity> explain) const = 0; virtual DocumentSource::GetDepsReturn addDependencies(DepsTracker* deps) const = 0; |