From b299986eb46a4511d617bb077b75497db6e8be8d Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 15 Feb 2012 12:13:47 -0500 Subject: [PATCH] minor: don't preallocate for replica set tests --- test/tools/repl_set_manager.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tools/repl_set_manager.rb b/test/tools/repl_set_manager.rb index aefecfc..3c3922f 100644 --- a/test/tools/repl_set_manager.rb +++ b/test/tools/repl_set_manager.rb @@ -22,6 +22,7 @@ class ReplSetManager @config = {"_id" => @name, "members" => []} @durable = opts.fetch(:durable, false) @smallfiles = opts.fetch(:smallfiles, true) + @prealloc = opts.fetch(:prealloc, false) @path = File.join(File.expand_path(File.dirname(__FILE__)), "data") @oplog_size = opts.fetch(:oplog_size, 16) @tags = [{"dc" => "ny", "rack" => "a", "db" => "main"}, @@ -129,6 +130,7 @@ class ReplSetManager "--oplogSize #{@oplog_size} #{journal_switch} --dbpath #{@mongods[n]['db_path']} --port #{@mongods[n]['port']} --fork" @mongods[n]['start'] += " --dur" if @durable @mongods[n]['start'] += " --smallfiles" if @smallfiles + @mongods[n]['start'] += " --noprealloc" unless @prealloc @mongods[n]['start'] end