diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2017-06-30 11:48:35 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2017-07-07 13:19:15 -0400 |
commit | 23f44557852e61349fd28505ec6b953e22024d8b (patch) | |
tree | 5898f879e8a5db71ee300cd2ded70e388e4ac21e /src/mongo/db/query/index_bounds_builder.h | |
parent | be4c4f1fffe6ca69fb67ee872b52b3bd4e630659 (diff) | |
download | mongo-23f44557852e61349fd28505ec6b953e22024d8b.tar.gz |
SERVER-29587: Partition MatchExpression types into categories, fixes an
issue with previous commit where {min/max}Items was categorized as a
leaf.
Diffstat (limited to 'src/mongo/db/query/index_bounds_builder.h')
-rw-r--r-- | src/mongo/db/query/index_bounds_builder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/index_bounds_builder.h b/src/mongo/db/query/index_bounds_builder.h index b397f81b295..6a4a74a94b0 100644 --- a/src/mongo/db/query/index_bounds_builder.h +++ b/src/mongo/db/query/index_bounds_builder.h @@ -75,8 +75,8 @@ public: * * If 'expr' is elemMatch, the index tag is affixed to a child. * - * The expression must be a predicate over one field. That is, expr->isLeaf() or - * expr->isArray() must be true, and expr->isLogical() must be false. + * The expression must be a predicate over one field. That is, expression category must be + * kLeaf or kArrayMatching. */ static void translate(const MatchExpression* expr, const BSONElement& elt, |