diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-05-07 16:50:39 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2019-05-10 09:54:51 -0400 |
commit | bf6c2696da7eb207c28e83f5bb7401c97b0f69ac (patch) | |
tree | 09becafec6a4c0fde05c809c0fad44669d1684dd /jstests/sharding/commands_that_write_accept_wc_shards.js | |
parent | e5bc443f43e5d7a41e7acafd2c6d9dedc45adfd2 (diff) | |
download | mongo-bf6c2696da7eb207c28e83f5bb7401c97b0f69ac.tar.gz |
SERVER-40238 New stage alias: $set => $addFields
Diffstat (limited to 'jstests/sharding/commands_that_write_accept_wc_shards.js')
-rw-r--r-- | jstests/sharding/commands_that_write_accept_wc_shards.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/commands_that_write_accept_wc_shards.js b/jstests/sharding/commands_that_write_accept_wc_shards.js index 2e3659eb6d1..80ac26b36e7 100644 --- a/jstests/sharding/commands_that_write_accept_wc_shards.js +++ b/jstests/sharding/commands_that_write_accept_wc_shards.js @@ -113,7 +113,7 @@ load('jstests/libs/write_concern_util.js'); update: collName, updates: [{ q: {type: 'oak'}, - u: [{$addFields: {type: 'ginkgo'}}], + u: [{$set: {type: 'ginkgo'}}], }], writeConcern: {w: 'majority'} }, @@ -152,7 +152,7 @@ load('jstests/libs/write_concern_util.js'); req: { findAndModify: collName, query: {type: 'oak'}, - update: [{$addFields: {type: 'ginkgo'}}], + update: [{$set: {type: 'ginkgo'}}], writeConcern: {w: 'majority'} }, setupFunc: function() { |