diff options
author | Benety Goh <benety@mongodb.com> | 2021-06-04 14:54:25 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-04 19:29:59 +0000 |
commit | 0f1549194c8ed57339679d27fea84acf53435d23 (patch) | |
tree | a51d71342c0b341a1b30ab8a6a4a3e9fbaf0d5d3 /jstests/replsets/initial_sync4.js | |
parent | dbf29a77529a35d4f571e5adc1687a96de153338 (diff) | |
download | mongo-0f1549194c8ed57339679d27fea84acf53435d23.tar.gz |
SERVER-57444 provide write concern for updates and inserts in initial_sync4.js
Diffstat (limited to 'jstests/replsets/initial_sync4.js')
-rw-r--r-- | jstests/replsets/initial_sync4.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/initial_sync4.js b/jstests/replsets/initial_sync4.js index 1860db6d1c8..6e14dfa1c1b 100644 --- a/jstests/replsets/initial_sync4.js +++ b/jstests/replsets/initial_sync4.js @@ -56,12 +56,12 @@ jsTestLog("6. Start updating documents on primary"); for (i = N - 1; i >= N - 10000; --i) { // If the document is cloned as {a:1}, the {$set:{'a.b':1}} modifier will uassert. - mc.update({_id: i}, {$set: {'a.b': 1}}); - mc.update({_id: i}, {$set: {a: 1}}); + mc.update({_id: i}, {$set: {'a.b': 1}}, {writeConcern: {w: 1}}); + mc.update({_id: i}, {$set: {a: 1}}, {writeConcern: {w: 1}}); } for (i = N; i < N * 2; i++) { - mc.insert({_id: i, x: i}); + mc.insert({_id: i, x: i}, {writeConcern: {w: 1}}); } assert.eq(N * 2, mc.find().itcount()); |