From 5d376f806460dee5a121483e33c0eeeb8c3791d7 Mon Sep 17 00:00:00 2001 From: Jason Chan Date: Tue, 16 Jul 2019 11:01:19 -0400 Subject: [PATCH] SERVER-41769 audit uses of write concern majority before transactions with snapshot read concern --- .../txns/timestamped_reads_wait_for_prepare_oplog_visibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jstests/core/txns/timestamped_reads_wait_for_prepare_oplog_visibility.js b/jstests/core/txns/timestamped_reads_wait_for_prepare_oplog_visibility.js index f2f1c4700ed..e26f88b85c3 100644 --- a/jstests/core/txns/timestamped_reads_wait_for_prepare_oplog_visibility.js +++ b/jstests/core/txns/timestamped_reads_wait_for_prepare_oplog_visibility.js @@ -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});