Force database sync on commit

svn: r4575
This commit is contained in:
Don Allingham 2005-05-12 20:24:16 +00:00
parent 8e4ecafda0
commit 3cd2b2098a
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2005-05-12 Don Allingham <don@gramps-project.org>
* src/GrampsBSDDB.py: force database sync on transaction commit
2005-05-12 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GenericFilter.py (ParamFilter.apply): Set parameter list before
prepare (solves crash in full text search)

View File

@ -382,6 +382,25 @@ class GrampsBSDDB(GrampsDbBase):
else:
return None
def transaction_commit(self,transaction,msg):
GrampsDbBase.transaction_commit(self,transaction,msg)
self.family_map.sync()
self.place_map.sync()
self.source_map.sync()
self.media_map.sync()
self.event_map.sync()
self.metadata.sync()
self.person_map.sync()
self.surnames.sync()
self.name_group.sync()
self.id_trans.sync()
self.fid_trans.sync()
self.pid_trans.sync()
self.sid_trans.sync()
self.oid_trans.sync()
self.eventnames.sync()
self.undodb.sync()
def upgrade(self):
child_rel_notrans = [
"None", "Birth", "Adopted", "Stepchild",