summaryrefslogtreecommitdiff
path: root/jstests/libs/storage_engine_utils.js
blob: 7c6f2d1309ea3029ad8e06762af5d0c48b220203 (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";
}