diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_graph_lookup.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_graph_lookup.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_graph_lookup.cpp b/src/mongo/db/pipeline/document_source_graph_lookup.cpp index 88b5c4efc46..d1902978b19 100644 --- a/src/mongo/db/pipeline/document_source_graph_lookup.cpp +++ b/src/mongo/db/pipeline/document_source_graph_lookup.cpp @@ -258,7 +258,8 @@ bool DocumentSourceGraphLookUp::addToVisitedAndFrontier(Document result, long lo return true; } -void DocumentSourceGraphLookUp::addToCache(Document result, const ValueUnorderedSet& queried) { +void DocumentSourceGraphLookUp::addToCache(const Document& result, + const ValueUnorderedSet& queried) { document_path_support::visitAllValuesAtPath( result, _connectToField, [this, &queried, &result](const Value& connectToValue) { // It is possible that 'connectToValue' is a single value, but was not queried for. For |