diff options
author | Anna Wawrzyniak <anna.wawrzyniak@mongodb.com> | 2022-11-19 06:53:15 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-19 07:47:36 +0000 |
commit | 44d6f998612ecde862bc298c7e9bbce512df156b (patch) | |
tree | 90157d437f43e26251d858be292d3e1c29c3f9ff /jstests | |
parent | e03526be7e182628190cbdf1d3eb21f36f27bedf (diff) | |
download | mongo-44d6f998612ecde862bc298c7e9bbce512df156b.tar.gz |
SERVER-70110 - Fix compilation of very wide and/or predicates
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthroughWithMongod/big_predicate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/big_predicate.js b/jstests/noPassthroughWithMongod/big_predicate.js index ac643616b5c..92fdc9b6a8b 100644 --- a/jstests/noPassthroughWithMongod/big_predicate.js +++ b/jstests/noPassthroughWithMongod/big_predicate.js @@ -8,8 +8,7 @@ const coll = db.big_predicate; coll.drop(); let filter = {}; -// TODO SERVER-70110: Revert number of branches to 2500. -for (let i = 0; i < 25; ++i) { +for (let i = 0; i < 2500; ++i) { filter["field" + i] = i; } @@ -21,6 +20,7 @@ assert.commandWorked(coll.explain().find(filter).finish()); assert.eq(coll.find({$or: [filter]}).itcount(), 1); assert.commandWorked(coll.explain().find({$or: [filter]}).finish()); +assert.commandWorked(coll.explain().find({$and: [filter]}).finish()); })(); /** |