0
0
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:
Richard Kreuter 2010-06-11 17:43:55 -04:00
parent 5824c626e7
commit 6db962ca3b

View File

@ -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)]