0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-41769 audit uses of write concern majority before transactions with snapshot read concern

This commit is contained in:
Jason Chan 2019-07-16 11:01:19 -04:00
parent 2fb05c59a4
commit 5d376f8064

View File

@ -61,7 +61,7 @@
// Insert a document for the transaction.
assert.commandWorked(testColl.insert(TestData.txnDoc));
// Insert a document untouched by the transaction.
assert.commandWorked(testColl.insert(TestData.otherDoc));
assert.commandWorked(testColl.insert(TestData.otherDoc, {writeconcern: {w: "majority"}}));
// Start a transaction with a single update on the 'txnDoc'.
const session = db.getMongo().startSession({causalConsistency: false});