diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2020-11-02 16:07:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-13 14:40:31 +0000 |
commit | b51fd3ce07ad6b5bf6de4ecaa2572e1f63dcf659 (patch) | |
tree | 2a4aebf1bef90bde25911f7bd58491eb07575c2e | |
parent | b3917c5828e89824cd76720224cd80c207fa4152 (diff) | |
download | mongo-b51fd3ce07ad6b5bf6de4ecaa2572e1f63dcf659.tar.gz |
SERVER-52560 oplog_writes_only_permitted_on_standalone.js must wait for insert to be in stable checkpoint
(cherry picked from commit 0008250ba85ce47e054241eedec8cddcda1c96d6)
-rw-r--r-- | jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js | 3 |
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 fe2c582b155..7bddbf81562 100644 --- a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js +++ b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js @@ -14,7 +14,8 @@ 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; |