0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/libs/storage_engine_utils.js

12 lines
597 B
JavaScript

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";
}