jstests/replsets/txn_override_unittests.js
/**
 * Aborts the current transaction in network_error_and_txn_override.js.
 */
Aborts the current transaction in network_error_and_txn_override.js.
Aborts the current transaction in network_error_and_txn_override . js .
function abortCurrentTransaction() {
    const session = testDB.getSession();
    const lsid = session.getSessionId();
    const txnNum = TestData.currentTxnOverrideTxnNumber;
    print("=-=-=-= Aborting current transaction " + txnNum + " on " + tojsononeline(lsid));
    assert.commandWorked(mongoRunCommandOriginal.apply(
        testDB.getMongo(),
        ['admin', {abortTransaction: 1, autocommit: false, lsid: lsid, txnNumber: txnNum}, 0]));
}
function abortCurrentTransaction ( ) { const session = testDB . getSession ( ) ; const lsid = session . getSessionId ( ) ; const txnNum = TestData . currentTxnOverrideTxnNumber ; print ( "=-=-=-= Aborting current transaction " + txnNum + " on " + tojsononeline ( lsid ) ) ; assert . commandWorked ( mongoRunCommandOriginal . apply ( testDB . getMongo ( ) , [ 'admin' , { abortTransaction : 1 , autocommit : false , lsid : lsid , txnNumber : txnNum } , 0 ] ) ) ; }
Aborts the current transaction in network_error_and_txn_override.js.
Aborts the current transaction in network_error_and_txn_override . js .