From bcfe072d5233be5892f715d27ca9dce69089242d Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Thu, 26 May 2016 11:59:28 -0700 Subject: [PATCH] Turn off journal for wired tiger in development --- tools/runners/run-mongo.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/runners/run-mongo.js b/tools/runners/run-mongo.js index 47b5fd99c7..da370dfc42 100644 --- a/tools/runners/run-mongo.js +++ b/tools/runners/run-mongo.js @@ -47,7 +47,6 @@ function spawnMongod(mongodPath, port, dbPath, replSetName) { // nb: cli-test.sh and findMongoPids make strong assumptions about the // order of the arguments! Check them before changing any arguments. '--bind_ip', '127.0.0.1', - '--smallfiles', '--port', port, '--dbpath', dbPath, // Use an 8MB oplog rather than 256MB. Uses less space on disk and @@ -56,8 +55,12 @@ function spawnMongod(mongodPath, port, dbPath, replSetName) { '--replSet', replSetName ]; + // Use mmapv1 on windows, as our binary doesn't support WT if (process.platform === "win32") { - args.push('--storageEngine', 'mmapv1'); + args.push('--storageEngine', 'mmapv1', '--smallfiles'); + } else { + // The WT journal seems to be at least 300MB, which is just too much + args.push('--nojournal'); } return child_process.spawn(mongodPath, args, {