mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
Only use 10MB oplog when --small-oplog is actually supplied.
This commit is contained in:
parent
5824c626e7
commit
6db962ca3b
@ -107,7 +107,7 @@ class mongod(object):
|
||||
call( ["python", "buildscripts/cleanbb.py", dirName] )
|
||||
utils.ensureDir( dirName )
|
||||
argv = [mongodExecutable, "--port", str(self.port), "--dbpath", dirName]
|
||||
if 'smallOplog' in self.kwargs:
|
||||
if self.kwargs.get('smallOplog'):
|
||||
argv += ["--master", "--oplogSize", "10"]
|
||||
if self.slave:
|
||||
argv += ['--slave', '--source', 'localhost:'+str(srcport)]
|
||||
|
Loading…
Reference in New Issue
Block a user