diff options
author | Nicholas Zolnierz <nicholas.zolnierz@mongodb.com> | 2022-08-30 19:43:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-30 20:23:15 +0000 |
commit | 5521f98c392f8af2fbb678f3cbf8089b641d9dba (patch) | |
tree | 1c3f2b201281e6ef071fb6697bafe9003910c581 /src | |
parent | dbe3923c3771d5f4670416c5c783c68eb03208f3 (diff) | |
download | mongo-5521f98c392f8af2fbb678f3cbf8089b641d9dba.tar.gz |
SERVER-68691 Report variable references for $graphLookup 'restrictSearchWithMatch' filter
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/pipeline/document_source_graph_lookup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_graph_lookup.h b/src/mongo/db/pipeline/document_source_graph_lookup.h index bc0146f1829..a4ad79c8111 100644 --- a/src/mongo/db/pipeline/document_source_graph_lookup.h +++ b/src/mongo/db/pipeline/document_source_graph_lookup.h @@ -132,6 +132,10 @@ public: DepsTracker::State getDependencies(DepsTracker* deps) const final { _startWith->addDependencies(deps); + if (_additionalFilter) { + uassertStatusOK(MatchExpressionParser::parse(*_additionalFilter, _fromExpCtx)) + ->addDependencies(deps); + } return DepsTracker::State::SEE_NEXT; }; |