diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/shell/servers.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index 61cb853173d..d636bdb470d 100644 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -1177,6 +1177,12 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro argArray.push(...['--rocksdbCacheSizeGB', jsTest.options().storageEngineCacheSizeGB]); } + } else if (jsTest.options().storageEngine === "inMemory") { + if (jsTest.options().storageEngineCacheSizeGB && + !argArrayContains("--inMemorySizeGB")) { + argArray.push( + ...["--inMemorySizeGB", jsTest.options().storageEngineCacheSizeGB]); + } } // apply setParameters for mongod. The 'setParameters' field should be given as // a plain JavaScript object, where each key is a parameter name and the value |