jstests/noPassthrough/query_engine_stats.js
// Ensure the profile filter contains the correct information about the queryExecutionEngine used.
Ensure the profile filter contains the correct information about the queryExecutionEngine used.
Ensure the profile filter contains the correct information about the queryExecutionEngine used .
function verifyProfiler(expectedComment, execEngine) {
    const profileEntryFilter = {ns: "query_engine_stats.collection"};
    const profileObj = getLatestProfilerEntry(db, profileEntryFilter);
    try {
        assert.eq(profileObj.command.comment, expectedComment);
        if (execEngine) {
            assert.eq(profileObj.queryExecutionEngine, execEngine);
        }
    } catch (e) {
        print('failed to find [{ "queryExecutionEngine" : "' + execEngine + '", { "comment" : "' +
              expectedComment + '"} }] in the latest profiler entry.');
        throw (e);
    }
}
function verifyProfiler ( expectedComment , execEngine ) { const profileEntryFilter = { ns : "query_engine_stats.collection" } ; const profileObj = getLatestProfilerEntry ( db , profileEntryFilter ) ; try { assert . eq ( profileObj . command . comment , expectedComment ) ; if ( execEngine ) { assert . eq ( profileObj . queryExecutionEngine , execEngine ) ; } } catch ( e ) { print ( 'failed to find [{ "queryExecutionEngine" : "' + execEngine + '", { "comment" : "' + expectedComment + '"} }] in the latest profiler entry.' ) ; throw ( e ) ; } }
Ensure the profile filter contains the correct information about the queryExecutionEngine used.
Ensure the profile filter contains the correct information about the queryExecutionEngine used .