jstests/core/txns/prepared_transactions_do_not_block_non_conflicting_ddl.js
/**
 * Tests that DDL operations on non-conflicting namespaces don't block on transactions.
 */
Tests that DDL operations on non-conflicting namespaces don't block on transactions.
Tests that DDL operations on non - conflicting namespaces don ' t block on transactions .
function testSuccess(cmdDBName, ddlCmd) {
    session.startTransaction();
    assert.commandWorked(sessionColl.update({_id: 1}, {$inc: {x: 1}}));
    const prepareTimestamp = PrepareHelpers.prepareTransaction(session);
    assert.commandWorked(testDB.getSiblingDB(cmdDBName).runCommand(ddlCmd));
    assert.commandWorked(PrepareHelpers.commitTransaction(session, prepareTimestamp));
}
function testSuccess ( cmdDBName , ddlCmd ) { session . startTransaction ( ) ; assert . commandWorked ( sessionColl . update ( { _id : 1 } , { $inc : { x : 1 } } ) ) ; const prepareTimestamp = PrepareHelpers . prepareTransaction ( session ) ; assert . commandWorked ( testDB . getSiblingDB ( cmdDBName ) . runCommand ( ddlCmd ) ) ; assert . commandWorked ( PrepareHelpers . commitTransaction ( session , prepareTimestamp ) ) ; }
Tests that DDL operations on non-conflicting namespaces don't block on transactions.
Tests that DDL operations on non - conflicting namespaces don ' t block on transactions .