* clear inactive logs automatically

This commit is contained in:
Eray Özkural
2005-12-23 23:47:16 +00:00
parent ee24cdc950
commit ce58aec650
+1
View File
@@ -64,6 +64,7 @@ def init_dbenv():
db.DB_RECOVER | # run normal recovery db.DB_RECOVER | # run normal recovery
db.DB_CREATE) # allow db to create files db.DB_CREATE) # allow db to create files
ctx.dbenv.open(pisi.context.config.db_dir(), flags) ctx.dbenv.open(pisi.context.config.db_dir(), flags)
ctx.dbenv.setflags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
else: else:
ctx.ui.warning(_('Opening PİSİ database in read-only mode. Operations that require write access will fail.')) ctx.ui.warning(_('Opening PİSİ database in read-only mode. Operations that require write access will fail.'))
ctx.dbenv = None ctx.dbenv = None