diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-01-11 14:00:27 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-01-19 09:55:59 -0500 |
commit | 87c9442cc30d4101693bb8ccb6fd4509aa048558 (patch) | |
tree | 99ab7b36d89776693c09f271e4de4fd4f64846e3 /jstests/core/where4.js | |
parent | 71ae3ed5b7e99ddb629ec64b85f4bd75b73aff17 (diff) | |
download | mongo-87c9442cc30d4101693bb8ccb6fd4509aa048558.tar.gz |
SERVER-31785 Use 2 shards in sharded jscore passthrough.
Diffstat (limited to 'jstests/core/where4.js')
-rw-r--r-- | jstests/core/where4.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/core/where4.js b/jstests/core/where4.js index df2f01a498e..974748f8dbc 100644 --- a/jstests/core/where4.js +++ b/jstests/core/where4.js @@ -1,4 +1,6 @@ -// @tags: [requires_non_retryable_writes] +// This test expects a function stored in the system.js collection to be available for a map/reduce, +// which may not be the case if it is implicitly sharded in a passthrough. +// @tags: [requires_non_retryable_writes, assumes_unsharded_collection] var myDB = db.getSiblingDB("where4"); @@ -31,4 +33,4 @@ assert.writeOK( myDB.where4.update({$where: "where4_addOne(this.x) == 2"}, {$inc: {y: 1}}, false, true)); assert.eq(3, myDB.where4.findOne({x: 1}).y); -assert.eq(1, myDB.where4.findOne({x: 2}).y);
\ No newline at end of file +assert.eq(1, myDB.where4.findOne({x: 2}).y); |