diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/query/planner_access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/planner_access.cpp b/src/mongo/db/query/planner_access.cpp index 31b90ea6a09..627b5f9226e 100644 --- a/src/mongo/db/query/planner_access.cpp +++ b/src/mongo/db/query/planner_access.cpp @@ -1218,7 +1218,7 @@ QuerySolutionNode* QueryPlannerAccess::buildIndexedDataAccess(const CanonicalQue } else if (Indexability::arrayUsesIndexOnChildren(root)) { QuerySolutionNode* solution = NULL; - invariant(MatchExpression::ELEM_MATCH_OBJECT); + invariant(root->matchType() == MatchExpression::ELEM_MATCH_OBJECT); // The child is an AND. invariant(1 == root->numChildren()); solution = buildIndexedDataAccess(query, root->getChild(0), true, indices, params); |