minor: don't preallocate for replica set tests
This commit is contained in:
parent
8c2929bd4c
commit
b299986eb4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue