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:
parent
2fb05c59a4
commit
5d376f8064
@ -61,7 +61,7 @@
|
|||||||
// Insert a document for the transaction.
|
// Insert a document for the transaction.
|
||||||
assert.commandWorked(testColl.insert(TestData.txnDoc));
|
assert.commandWorked(testColl.insert(TestData.txnDoc));
|
||||||
// Insert a document untouched by the transaction.
|
// 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'.
|
// Start a transaction with a single update on the 'txnDoc'.
|
||||||
const session = db.getMongo().startSession({causalConsistency: false});
|
const session = db.getMongo().startSession({causalConsistency: false});
|
||||||
|
Loading…
Reference in New Issue
Block a user