* src/GrampsDb/_DbUtils.py (db_copy): Use batch transaction.

* src/GrampsDb/_GrampsBSDDB.py (transaction_begin): Proper indentation.


svn: r6606
This commit is contained in:
Alex Roitman
2006-05-10 14:23:38 +00:00
parent 2ee29d05f2
commit 99db21d8fe
3 changed files with 11 additions and 1 deletions

View File

@@ -1076,7 +1076,7 @@ class GrampsBSDDB(GrampsDbBase):
if transaction.batch:
if self.UseTXN:
self.env.txn_checkpoint()
self.env.set_flags(db.DB_TXN_NOSYNC,1) # async txn
self.env.set_flags(db.DB_TXN_NOSYNC,1) # async txn
if self.secondary_connected and not transaction.no_magic:
# Disconnect unneeded secondary indices