* src/gen/db/dbdir.py: always use db.DB_RECOVER

2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9475
This commit is contained in:
Benny Malengier 2007-12-09 22:27:24 +00:00
parent 77a9eb54cf
commit 30e224ff35
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/db/dbdir.py: always use db.DB_RECOVER
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/NarrativeWeb.py: Use Narrated word

View File

@ -497,8 +497,8 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback):
db.DB_INIT_MPOOL | db.DB_INIT_LOCK |\
db.DB_INIT_LOG | db.DB_INIT_TXN | db.DB_THREAD
# Only do recovery for existing databases
if os.path.isfile(self.full_name):
# As opposed to before, we always try recovery on databases
# in _GrampsBSDDB.py we only do that on existing filenames
env_flags = env_flags | db.DB_RECOVER
# Environment name is now based on the filename