jstests/noPassthrough/query_engine_stats.js
// Ensure the slow query log contains the correct information about the queryExecutionEngine used.
Ensure the slow query log contains the correct information about the queryExecutionEngine used.
Ensure the slow query log contains the correct information about the queryExecutionEngine used .
function verifySlowQueryLog(expectedComment, execEngine) {
    const logId = 51803;
    const expectedLog = {};
    expectedLog.command = {};
    expectedLog.command.comment = expectedComment;
    if (execEngine) {
        expectedLog.queryExecutionEngine = execEngine;
    }
    assert(checkLog.checkContainsWithCountJson(db, logId, expectedLog, 1, null, true),
           "failed to find [" + tojson(expectedLog) + "] in the slow query log");
}
function verifySlowQueryLog ( expectedComment , execEngine ) { const logId = 51803 ; const expectedLog = { } ; expectedLog . command = { } ; expectedLog . command . comment = expectedComment ; if ( execEngine ) { expectedLog . queryExecutionEngine = execEngine ; } assert ( checkLog . checkContainsWithCountJson ( db , logId , expectedLog , 1 , null , true ) , "failed to find [" + tojson ( expectedLog ) + "] in the slow query log" ) ; }
Ensure the slow query log contains the correct information about the queryExecutionEngine used.
Ensure the slow query log contains the correct information about the queryExecutionEngine used .