diff options
author | Adityavardhan Agrawal <aa729@cornell.edu> | 2022-11-10 21:14:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-10 22:27:34 +0000 |
commit | 0c82c0cfa3525721cf2269271b6978df85882bf8 (patch) | |
tree | b38a52882c6294d318762325979e2e2c6dd27b52 /jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js | |
parent | f32fceffb99d547f978528c17a1a4c0069a3c298 (diff) | |
download | mongo-0c82c0cfa3525721cf2269271b6978df85882bf8.tar.gz |
SERVER-33182 Remove atomic applyOps
Diffstat (limited to 'jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js')
-rw-r--r-- | jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js b/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js index 439835b6082..3801e371b0d 100644 --- a/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js +++ b/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js @@ -1,6 +1,6 @@ /** * Tests that pre-images are written to the pre-images collection on updates and deletes in - * transactions and for non-atomic "applyOps" command. + * transactions and for "applyOps" command. * @tags: [ * requires_fcv_60, * requires_replication, @@ -200,7 +200,7 @@ function getCollections(db) { assert.commandWorked(coll.deleteMany({})); assert.commandWorked(coll.insert([{_id: 1, a: 1}, {_id: 2, a: 1}])); - // Verify that pre-images are written correctly for the non-atomic "applyOps" command. + // Verify that pre-images are written correctly for the "applyOps" command. assertPreImagesWrittenForOps(testDB, function() { assert.commandWorked(testDB.runCommand({ applyOps: [ @@ -212,22 +212,6 @@ function getCollections(db) { }, [{_id: 1, a: 1}, {_id: 2, a: 1}]); })(); -(function testPreImageWritingForAtomicApplyOpsCommandAutoConvertedToNonAtomic() { - assert.commandWorked(coll.deleteMany({})); - assert.commandWorked(coll.insert([{_id: 1, a: 1}, {_id: 2, a: 1}])); - - // Verify that pre-images are written correctly for the atomic "applyOps" command, which is - // automatically converted to a non-atomic one. - assertPreImagesWrittenForOps(testDB, function() { - assert.commandWorked(testDB.runCommand({ - applyOps: [ - {op: "u", ns: coll.getFullName(), o2: {_id: 1}, o: {$v: 2, diff: {u: {a: 2}}}}, - {op: "d", ns: coll.getFullName(), o: {_id: 2}} - ], - })); - }, [{_id: 1, a: 1}, {_id: 2, a: 1}]); -})(); - (function testPreImageWritingForPreparedTransaction() { assert.commandWorked(coll.deleteMany({})); assert.commandWorked(coll.insert([{_id: 1, a: 1}, {_id: 3, a: 1}, {_id: 11}])); |