svn: r6538

This commit is contained in:
Alex Roitman 2006-05-04 00:38:25 +00:00
parent 715e7b2b86
commit e90f4b3705
2 changed files with 4 additions and 0 deletions

View File

@ -1066,6 +1066,8 @@ class GrampsBSDDB(GrampsDbBase):
# A batch transaction does not store the commits
# Aborting the session completely will become impossible.
self.abort_possible = False
# Undo is also impossible after batch transaction
self.undoindex = -1
transaction = BdbTransaction(msg,self.undodb,batch,no_magic)
if transaction.batch:
if self.UseTXN:

View File

@ -1208,6 +1208,8 @@ class GrampsDbBase(GrampsDBCallback):
# A batch transaction does not store the commits
# Aborting the session completely will become impossible.
self.abort_possible = False
# Undo is also impossible after batch transaction
self.undoindex = -1
return Transaction(msg, self.undodb, batch)
def transaction_commit(self, transaction, msg):