summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2017-03-22 09:09:56 -0400
committerDavid Storch <david.storch@10gen.com>2017-03-22 12:25:23 -0400
commit70151a3b5cc65bd1b16831c523a6f5b477b82c3d (patch)
tree4176fb04f9675418b9b44eadc3165e1536de5861 /src/mongo/db
parent4d364a4c951bb05639335d5989c1f85e79af78fa (diff)
downloadmongo-70151a3b5cc65bd1b16831c523a6f5b477b82c3d.tar.gz
SERVER-28425 fix QueryPlannerAccess invariant
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/query/planner_access.cpp2
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);