jstests/sharding/libs/sharded_transactions_helpers.js
/*
 * If all shards in the cluster have binVersion "lastest", sets the server parameter for
 * making the transaction coordinator return decision early to true.
 * TODO (SERVER-48114): Remove this function.
 */
If all shards in the cluster have binVersion "lastest", sets the server parameter for
making the transaction coordinator return decision early to true.
TODO (SERVER-48114): Remove this function.
If all shards in the cluster have binVersion " lastest " sets the server parameter for making the transaction coordinator return decision early to true . TODO ( SERVER - 48114 ) : Remove this function .
function enableCoordinateCommitReturnImmediatelyAfterPersistingDecision(st) {
    st._rs.forEach(rs => {
        rs.nodes.forEach(node => {
            assert.commandWorked(node.getDB('admin').runCommand({
                setParameter: 1,
                "coordinateCommitReturnImmediatelyAfterPersistingDecision": true
            }));
        });
    });
}
function enableCoordinateCommitReturnImmediatelyAfterPersistingDecision ( st ) { st . _rs . forEach ( rs => { rs . nodes . forEach ( node => { assert . commandWorked ( node . getDB ( 'admin' ) . runCommand ( { setParameter : 1 , "coordinateCommitReturnImmediatelyAfterPersistingDecision" : true } ) ) ; } ) ; } ) ; }
If all shards in the cluster have binVersion "lastest", sets the server parameter for
 making the transaction coordinator return decision early to true.
If all shards in the cluster have binVersion " lastest " sets the server parameter for making the transaction coordinator return decision early to true .