summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_graph_lookup.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/document_source_graph_lookup.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/document_source_graph_lookup.h')
-rw-r--r--src/mongo/db/pipeline/document_source_graph_lookup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_graph_lookup.h b/src/mongo/db/pipeline/document_source_graph_lookup.h
index 86b27c191cc..0c714be441c 100644
--- a/src/mongo/db/pipeline/document_source_graph_lookup.h
+++ b/src/mongo/db/pipeline/document_source_graph_lookup.h
@@ -149,7 +149,7 @@ private:
* Updates '_cache' with 'result' appropriately, given that 'result' was retrieved when querying
* for 'queried'.
*/
- void addToCache(Document result, const ValueUnorderedSet& queried);
+ void addToCache(const Document& result, const ValueUnorderedSet& queried);
/**
* Assert that '_visited' and '_frontier' have not exceeded the maximum meory usage, and then