summaryrefslogtreecommitdiff
path: root/jstests/sharding
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2013-11-15 15:11:14 -0500
committerGreg Studer <greg@10gen.com>2013-11-15 17:12:16 -0500
commit58b3bbcc1c366185cfbf9b8551a4c7150f6553d9 (patch)
tree6c73f30a4de1f3858a5902c3b87e4ff76dc649c8 /jstests/sharding
parent694be63030e61a97d8cc8416679f3f75580fdd23 (diff)
downloadmongo-58b3bbcc1c366185cfbf9b8551a4c7150f6553d9.tar.gz
SERVER-11720 minimal patch - Immutable update checks should be done for replacements
Diffstat (limited to 'jstests/sharding')
-rw-r--r--jstests/sharding/array_shard_key.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/jstests/sharding/array_shard_key.js b/jstests/sharding/array_shard_key.js
index 60e554c873c..46ed72addd1 100644
--- a/jstests/sharding/array_shard_key.js
+++ b/jstests/sharding/array_shard_key.js
@@ -57,11 +57,6 @@ value = coll.findOne({ i : 1 })
coll.update( value, Object.merge( value, { i : [ 3, 4 ] } ), false, true)
checkError( true )
-// Single update the value with valid other fields
-value = coll.findOne({ i : 1 })
-coll.update( Object.merge( value, { i : [ 3, 4 ] } ), value )
-checkError( true )
-
// Multi-update the value with other fields (won't work, but no error)
value = coll.findOne({ i : 1 })
coll.update( Object.merge( value, { i : [ 1, 1 ] } ), { $set : { k : 4 } }, false, true)