From ce58aec650a9f34fdd0a5210c20c90dbd2a91e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Fri, 23 Dec 2005 23:47:16 +0000 Subject: [PATCH] * clear inactive logs automatically --- pisi/lockeddbshelve.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pisi/lockeddbshelve.py b/pisi/lockeddbshelve.py index dbe3fb2d..e27b2e83 100644 --- a/pisi/lockeddbshelve.py +++ b/pisi/lockeddbshelve.py @@ -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