0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

need a bigger oplog size

This commit is contained in:
Eliot Horowitz 2011-04-26 10:52:54 -04:00
parent 65abee1492
commit b661f15b4d

View File

@ -145,7 +145,7 @@ class mongod(object):
utils.ensureDir(dir_name) utils.ensureDir(dir_name)
argv = [mongod_executable, "--port", str(self.port), "--dbpath", dir_name] argv = [mongod_executable, "--port", str(self.port), "--dbpath", dir_name]
if self.kwargs.get('small_oplog'): if self.kwargs.get('small_oplog'):
argv += ["--master", "--oplogSize", "128"] argv += ["--master", "--oplogSize", "256"]
if self.slave: if self.slave:
argv += ['--slave', '--source', 'localhost:' + str(srcport)] argv += ['--slave', '--source', 'localhost:' + str(srcport)]
print "running " + " ".join(argv) print "running " + " ".join(argv)