jstests/concurrency/fsm_workload_helpers/server_types.js
/**
 * Returns true if the current storage engine is wiredTiger
 * and false otherwise.
 *
 */
Returns true if the current storage engine is wiredTiger
and false otherwise.
Returns true if the current storage engine is wiredTiger and false otherwise .
function isWiredTiger(db) {
    var status = db.serverStatus();
    assert.commandWorked(status);
    assert(isMongod(db),
           'no storage engine is reported when connected to mongos');
    assert.neq('undefined', typeof status.storageEngine,
               'missing storage engine info in server status');
    return status.storageEngine.name === 'wiredTiger';
}
function isWiredTiger ( db ) { var status = db . serverStatus ( ) ; assert . commandWorked ( status ) ; assert ( isMongod ( db ) , 'no storage engine is reported when connected to mongos' ) ; assert . neq ( 'undefined' , typeof status . storageEngine , 'missing storage engine info in server status' ) ; return status . storageEngine . name === 'wiredTiger' ; }
Returns true if the current storage engine is wiredTiger
 and false otherwise.
Returns true if the current storage engine is wiredTiger and false otherwise .