diff options
author | David Storch <david.storch@10gen.com> | 2015-03-31 15:46:48 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-03-31 15:55:42 -0400 |
commit | 52aeb98fefd624a2494cd909c785aa3b912f71c2 (patch) | |
tree | ef58250dccd9f54d5cb7a555d5dac3438018bf8a | |
parent | b87a1c395527b0981b6613d6ecf949f2c7465ad8 (diff) | |
download | mongo-52aeb98fefd624a2494cd909c785aa3b912f71c2.tar.gz |
SERVER-17119 fix yield_and_hashed.js to test a correct plan for WT
(cherry picked from commit 20cc174108c3ecf5040ebd64655b0cf39804e886)
-rw-r--r-- | jstests/concurrency/fsm_workloads/yield_and_hashed.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/yield_and_hashed.js b/jstests/concurrency/fsm_workloads/yield_and_hashed.js index 9edcaef06f9..aa53a354209 100644 --- a/jstests/concurrency/fsm_workloads/yield_and_hashed.js +++ b/jstests/concurrency/fsm_workloads/yield_and_hashed.js @@ -30,7 +30,14 @@ var $config = extendWorkload($config, function($config, $super) { endKeyInclusive: true, direction: 1 } } }; var andix1ix2 = { andHash: { args: { nodes: [ixscan1, ixscan2] } } }; - var res = db.runCommand({ stageDebug: { plan: andix1ix2, collection: collName } }); + + // On non-MMAP storage engines, index intersection plans will always re-filter + // the docs to make sure we don't get any spurious matches. + var fetch = { fetch: { filter: { c: { $lte: nMatches }, + d: { $gte: (this.nDocs - nMatches) } }, + args: { node: andix1ix2 } } }; + + var res = db.runCommand({ stageDebug: { plan: fetch, collection: collName } }); assertAlways.commandWorked(res); for (var i = 0; i < res.results.length; i++) { var result = res.results[i]; |