From 5b9c03394631d9de35a1e1e561b8d89994a8bcc0 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 13 Aug 2006 00:23:06 +0000 Subject: [PATCH] (close): Close metadata after the checkpoint. svn: r7165 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsDb/_GrampsBSDDB.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 0ce5559bd..c0935a23f 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -4,6 +4,7 @@ 2006-08-12 Alex Roitman * src/GrampsDb/_GrampsBSDDB.py: Fix new db creation; make metadata work with UseTXN set either way. + (close): Close metadata after the checkpoint. * src/ViewManager.py (_connect_signals): Connect to the proper event to cleanly quit on window manager's close action. (quit): Allow variable number of args (to work with signals). diff --git a/gramps2/src/GrampsDb/_GrampsBSDDB.py b/gramps2/src/GrampsDb/_GrampsBSDDB.py index 9d1adb07c..2f78af5e6 100644 --- a/gramps2/src/GrampsDb/_GrampsBSDDB.py +++ b/gramps2/src/GrampsDb/_GrampsBSDDB.py @@ -979,10 +979,10 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback): if not self.db_is_open: return - self._close_metadata() - if self.UseTXN: self.env.txn_checkpoint() + + self._close_metadata() self.name_group.close() self.surnames.close() self.id_trans.close()