summaryrefslogtreecommitdiff
path: root/jstests/core/index_elemmatch2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/index_elemmatch2.js')
-rw-r--r--jstests/core/index_elemmatch2.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/core/index_elemmatch2.js b/jstests/core/index_elemmatch2.js
index d90606ff1ba..b0b7015d037 100644
--- a/jstests/core/index_elemmatch2.js
+++ b/jstests/core/index_elemmatch2.js
@@ -1,9 +1,6 @@
/**
* Test that queries containing $elemMatch correctly use an index if each child expression is
* compatible with the index.
- * @tags: [
- * sbe_incompatible,
- * ]
*/
(function() {
"use strict";
@@ -22,7 +19,7 @@ assert.commandWorked(coll.createIndex({a: 1}, {sparse: true}));
function assertIndexResults(coll, query, useIndex, nReturned) {
const explainPlan = coll.find(query).explain("executionStats");
- assert.eq(isIxscan(db, explainPlan.queryPlanner.winningPlan), useIndex);
+ assert.eq(isIxscan(db, getWinningPlan(explainPlan.queryPlanner)), useIndex);
assert.eq(explainPlan.executionStats.nReturned, nReturned);
}