summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_bounds_builder.h
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-06-30 11:48:35 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-07-07 13:19:15 -0400
commit23f44557852e61349fd28505ec6b953e22024d8b (patch)
tree5898f879e8a5db71ee300cd2ded70e388e4ac21e /src/mongo/db/query/index_bounds_builder.h
parentbe4c4f1fffe6ca69fb67ee872b52b3bd4e630659 (diff)
downloadmongo-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.h4
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,