summaryrefslogtreecommitdiff
path: root/jstests/libs/storage_engine_utils.js
blob: 082951572e60f172e2f899178d5d48dd16cab326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function storageEngineIsWiredTigerOrInMemory() {
    // We assume that WiredTiger is the default storage engine, if the storage engine is
    // unspecified in the test options.
    return !jsTest.options().storageEngine || jsTest.options().storageEngine === "wiredTiger" ||
        jsTest.options().storageEngine === "inMemory";
}

function storageEngineIsWiredTiger() {
    // We assume that WiredTiger is the default storage engine, if the storage engine is
    // unspecified in the test options.
    return !jsTest.options().storageEngine || jsTest.options().storageEngine === "wiredTiger";
}