diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2021-11-30 02:03:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-30 04:26:37 +0000 |
commit | e4fdc9440350c3840bbcba5fa5cdbd86609fcb59 (patch) | |
tree | 63c66fd764650585f886340e6c51a7cc3bdc6d67 /src/mongo/db/exec/subplan.h | |
parent | bc6a66d1d4f2bf2dfe8603de792c567ee0db830c (diff) | |
download | mongo-e4fdc9440350c3840bbcba5fa5cdbd86609fcb59.tar.gz |
SERVER-61787 Block pushdown of subplanned $match stage
Diffstat (limited to 'src/mongo/db/exec/subplan.h')
-rw-r--r-- | src/mongo/db/exec/subplan.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/exec/subplan.h b/src/mongo/db/exec/subplan.h index 88b4941321f..34483a4408b 100644 --- a/src/mongo/db/exec/subplan.h +++ b/src/mongo/db/exec/subplan.h @@ -77,6 +77,10 @@ public: CanonicalQuery* cq); static bool canUseSubplanning(const CanonicalQuery& query); + static bool needsSubplanning(const CanonicalQuery& query) { + return internalQueryPlanOrChildrenIndependently.load() && + SubplanStage::canUseSubplanning(query); + } bool isEOF() final; StageState doWork(WorkingSetID* out) final; |