From 0cba44146a8d3b245cc3924f7579e51f47c4a938 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 4 Mar 2017 00:16:27 +0000 Subject: [PATCH] Avoid nested transactions --- gramps/gen/db/generic.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index f5700553a..509325057 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -671,7 +671,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): touch(filename) # Save metadata - self._txn_begin() self._set_metadata('name_formats', self.name_formats) self._set_metadata('researcher', self.owner) @@ -722,7 +721,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback): self._set_metadata('omap_index', self.omap_index) self._set_metadata('rmap_index', self.rmap_index) self._set_metadata('nmap_index', self.nmap_index) - self._txn_commit() self._close() self.db_is_open = False