* clear inactive logs automatically
This commit is contained in:
@@ -64,6 +64,7 @@ def init_dbenv():
|
||||
db.DB_RECOVER | # run normal recovery
|
||||
db.DB_CREATE) # allow db to create files
|
||||
ctx.dbenv.open(pisi.context.config.db_dir(), flags)
|
||||
ctx.dbenv.setflags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
|
||||
else:
|
||||
ctx.ui.warning(_('Opening PİSİ database in read-only mode. Operations that require write access will fail.'))
|
||||
ctx.dbenv = None
|
||||
|
||||
Reference in New Issue
Block a user