jstests/libs/sbe_explain_helpers.js
/**
 * Helper to make an assertion depending on the engine being used. If we're in a mixed version
 * cluster, then we assert that either 'classicAssert' or 'sbeAssert' is true because the outcome
 * will depend on which node we're making assertions against. If we're not in a mixed version
 * scenario, then we make an assertion depending on the value of 'isSBEEnabled'.
 */
Helper to make an assertion depending on the engine being used.
Helper to make an assertion depending on the engine being used .
function engineSpecificAssertion(classicAssert, sbeAssert, theDB, msg) {
    if (checkBothEnginesAreRunOnCluster(theDB)) {
        assert(classicAssert || sbeAssert, msg);
    } else if (checkSBEEnabled(theDB)) {
        assert(sbeAssert, msg);
    } else {
        assert(classicAssert, msg);
    }
}
function engineSpecificAssertion ( classicAssert , sbeAssert , theDB , msg ) { if ( checkBothEnginesAreRunOnCluster ( theDB ) ) { assert ( classicAssert || sbeAssert , msg ) ; } else if ( checkSBEEnabled ( theDB ) ) { assert ( sbeAssert , msg ) ; } else { assert ( classicAssert , msg ) ; } }
Helper to make an assertion depending on the engine being used.
Helper to make an assertion depending on the engine being used .