diff options
author | Jason Chan <jason.chan@10gen.com> | 2019-07-09 17:42:04 -0400 |
---|---|---|
committer | Jason Chan <jason.chan@10gen.com> | 2019-07-16 14:09:55 -0400 |
commit | 795b99ef36ea9448c862db6fd56ff6321bf66c9e (patch) | |
tree | 0124d6014fbeaad56dacb474b67a8a5ab997692a /jstests/change_streams | |
parent | 2dfbaadb85f32869c75f87117d9f6e98b4e948ea (diff) | |
download | mongo-795b99ef36ea9448c862db6fd56ff6321bf66c9e.tar.gz |
SERVER-41769 Pin _currentCommittedSnapshot to be <= the allCommitted timestamp when EMRC=false
Diffstat (limited to 'jstests/change_streams')
-rw-r--r-- | jstests/change_streams/apply_ops.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/change_streams/apply_ops.js b/jstests/change_streams/apply_ops.js index efc72104485..80065805c78 100644 --- a/jstests/change_streams/apply_ops.js +++ b/jstests/change_streams/apply_ops.js @@ -17,7 +17,8 @@ // Insert a document that gets deleted as part of the transaction. const kDeletedDocumentId = 0; - coll.insert({_id: kDeletedDocumentId, a: "I was here before the transaction"}); + coll.insert({_id: kDeletedDocumentId, a: "I was here before the transaction"}, + {writeConcern: {w: "majority"}}); let cst = new ChangeStreamTest(db); let changeStream = cst.startWatchingChanges({ |