diff options
author | Anton Korshunov <anton.korshunov@mongodb.com> | 2021-01-18 22:06:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-30 03:46:12 +0000 |
commit | c088ca3d8fef6d806f92ea2d5869d8910e5cd30c (patch) | |
tree | e5d69b3273488d9d0c9aa2894184cc8a7545aac9 /jstests/core/wildcard_index_hint.js | |
parent | c08203fe14a89e789b7dc5353c427e34c4c2b31e (diff) | |
download | mongo-c088ca3d8fef6d806f92ea2d5869d8910e5cd30c.tar.gz |
SERVER-53270 Include SBE PlanStage tree string into explain output
Diffstat (limited to 'jstests/core/wildcard_index_hint.js')
-rw-r--r-- | jstests/core/wildcard_index_hint.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/wildcard_index_hint.js b/jstests/core/wildcard_index_hint.js index ff481a62712..a5f0f9a4c92 100644 --- a/jstests/core/wildcard_index_hint.js +++ b/jstests/core/wildcard_index_hint.js @@ -14,7 +14,7 @@ const assertArrayEq = (l, r) => assert(arrayEq(l, r), tojson(l) + " != " + tojso // Extracts the winning plan for the given query and hint from the explain output. const winningPlan = (query, hint) => - assert.commandWorked(coll.find(query).hint(hint).explain()).queryPlanner.winningPlan; + getWinningPlan(assert.commandWorked(coll.find(query).hint(hint).explain()).queryPlanner); // Runs the given query and confirms that: // (1) the expected index was used to answer the query, and |