3975: Accessing an incompatible database corrupts the database

Undoing unset of DB_RECOVERY flag, we need it to have ACI(D) database


svn: r16561
This commit is contained in:
Benny Malengier 2011-02-03 22:23:05 +00:00
parent 6ca6765458
commit 277e91a1ca

View File

@ -404,6 +404,9 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
env_flags = db.DB_CREATE | db.DB_PRIVATE |\
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