jstests/replsets/stable_timestamp_can_advance_after_oplog_hole_abort.js
// Run and commit a transaction that inserts a document.
Run and commit a transaction that inserts a document.
Run and commit a transaction that inserts a document .
function transactionFn(host, dbName, collName) {
    const session = new Mongo(host).startSession();
    const sessionDB = session.getDatabase(dbName);
    session.startTransaction();
    sessionDB[collName].insert({});
    assert.commandFailedWithCode(session.commitTransaction_forTesting(), 51268);
}
function transactionFn ( host , dbName , collName ) { const session = new Mongo ( host ) . startSession ( ) ; const sessionDB = session . getDatabase ( dbName ) ; session . startTransaction ( ) ; sessionDB [ collName ] . insert ( { } ) ; assert . commandFailedWithCode ( session . commitTransaction_forTesting ( ) , 51268 ) ; }
Run and commit a transaction that inserts a document.
Run and commit a transaction that inserts a document .