summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_solution.h
diff options
context:
space:
mode:
authorAnton Korshunov <anton.korshunov@mongodb.com>2022-06-29 15:16:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-29 17:32:38 +0000
commit11aa6d3c5166f0e8dcaefca691d303b9c0af3dc9 (patch)
treed9eab38ebd68be897656b1c1eb18badc6f06acfd /src/mongo/db/query/query_solution.h
parentc007112aaebdf3e1403ee84aa356e07fa084b059 (diff)
downloadmongo-11aa6d3c5166f0e8dcaefca691d303b9c0af3dc9.tar.gz
SERVER-66459 Explode for sort caches incorrect parameterized plans
Diffstat (limited to 'src/mongo/db/query/query_solution.h')
-rw-r--r--src/mongo/db/query/query_solution.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_solution.h b/src/mongo/db/query/query_solution.h
index 27a4ff33977..aa289b6c8de 100644
--- a/src/mongo/db/query/query_solution.h
+++ b/src/mongo/db/query/query_solution.h
@@ -403,6 +403,11 @@ public:
// we would want to fall back on an alternate non-blocking solution.
bool hasBlockingStage{false};
+ // Indicates whether this query solution represents an 'explode for sort' plan when an index
+ // scan over multiple point intervals is 'exploded' into a union of index scans in order to
+ // obtain an indexed sort.
+ bool hasExplodedForSort{false};
+
// Runner executing this solution might be interested in knowing
// if the planning process for this solution was based on filtered indices.
bool indexFilterApplied{false};