diff options
author | David Storch <david.storch@10gen.com> | 2013-11-25 17:31:58 -0500 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2013-12-02 12:25:46 -0500 |
commit | bcfc8f0ae35fe08c5336c21cfd9752c06b089956 (patch) | |
tree | 3fdf3097bfc93e6cc9c1f638abadd135ed92caa1 /src/mongo/db/query/planner_access.h | |
parent | cde3f4bd1aab5c29c880da9e606864f31377889b (diff) | |
download | mongo-bcfc8f0ae35fe08c5336c21cfd9752c06b089956.tar.gz |
SERVER-11852 fix query planning for inexact regexes
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'src/mongo/db/query/planner_access.h')
-rw-r--r-- | src/mongo/db/query/planner_access.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/query/planner_access.h b/src/mongo/db/query/planner_access.h index caeb75494fa..d4d490f5154 100644 --- a/src/mongo/db/query/planner_access.h +++ b/src/mongo/db/query/planner_access.h @@ -155,6 +155,17 @@ namespace mongo { * Aligns OILs (and bounds) according to the kp direction * the scanDir. */ static void alignBounds(IndexBounds* bounds, const BSONObj& kp, int scanDir = 1); + + private: + /** + * Add the filter 'match' to the query solution node 'node'. Takes + * ownership of 'match'. + * + * The MatchType, 'type', indicates whether 'match' is a child of an + * AND or an OR match expression. + */ + static void _addFilterToSolutionNode(QuerySolutionNode* node, MatchExpression* match, + MatchExpression::MatchType type); }; } // namespace mongo |