diff options
Diffstat (limited to 'jstests/core/projection_dotted_paths.js')
-rw-r--r-- | jstests/core/projection_dotted_paths.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/jstests/core/projection_dotted_paths.js b/jstests/core/projection_dotted_paths.js index a9316d70467..e76feb7a2ee 100644 --- a/jstests/core/projection_dotted_paths.js +++ b/jstests/core/projection_dotted_paths.js @@ -77,11 +77,8 @@ assert.eq(resultDoc, {b: {c: 1}}); explain = coll.find({a: 2}, {_id: 0, "b.c": 1}).explain("queryPlanner"); assert(isIxscan(db, explain.queryPlanner.winningPlan)); - if (jsTest.options().storageEngine !== "mmapv1") { - // Storage engines other than MMAPv1 track path-level multikey info, and can use this info - // to generate a covered plan. - assert(isIndexOnly(db, explain.queryPlanner.winningPlan)); - } + // Path-level multikey info allows for generating a covered plan. + assert(isIndexOnly(db, explain.queryPlanner.winningPlan)); // Verify that dotted projections work for multiple levels of nesting. assert.commandWorked(coll.createIndex({a: 1, "x.y.y": 1, "x.y.z": 1, "x.z": 1})); |