summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-11-02 16:07:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-12 01:07:22 +0000
commit21169a8fb3064c79a1045f743d04f56160feef87 (patch)
tree3c5fd2c3ba42c8e1c956e9241aa1ab73b8ef3a00
parent58e1d3be8355ef1c727627ce2a3dcc5c003cce65 (diff)
downloadmongo-21169a8fb3064c79a1045f743d04f56160feef87.tar.gz
SERVER-52560 oplog_writes_only_permitted_on_standalone.js must wait for insert to be in stable checkpoint
-rw-r--r--jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js
index 1e77d01c561..82c6ad8c0a0 100644
--- a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js
+++ b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js
@@ -15,7 +15,8 @@ rst.startSet();
rst.initiateWithHighElectionTimeout();
let conn = rst.getPrimary();
-assert.commandWorked(conn.getDB("test").coll.insert({_id: 0, a: 0}));
+assert.commandWorked(
+ conn.getDB("test").coll.insert({_id: 0, a: 0}, {writeConcern: {w: "majority"}}));
let oplog = conn.getDB("local").oplog.rs;