From 60e8c0c013731bcd05ffba2061106adedf7e1774 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 3 Feb 2011 22:23:36 +0000 Subject: [PATCH] 3975: Accessing an incompatible database corrupts the database Undoing unset of DB_RECOVERY flag, we need it to have ACI(D) database svn: r16562 --- src/gen/db/write.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gen/db/write.py b/src/gen/db/write.py index b8cdea130..98e83c72a 100644 --- a/src/gen/db/write.py +++ b/src/gen/db/write.py @@ -423,6 +423,9 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback): db.DB_INIT_MPOOL | db.DB_INIT_LOCK |\ db.DB_INIT_LOG | db.DB_INIT_TXN | db.DB_THREAD + # As opposed to before, we always try recovery on databases + env_flags |= db.DB_RECOVER + # Environment name is now based on the filename env_name = name