Avoid nested transactions
This commit is contained in:
parent
93af3a0c63
commit
0cba44146a
@ -671,7 +671,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
|
|||||||
touch(filename)
|
touch(filename)
|
||||||
|
|
||||||
# Save metadata
|
# Save metadata
|
||||||
self._txn_begin()
|
|
||||||
self._set_metadata('name_formats', self.name_formats)
|
self._set_metadata('name_formats', self.name_formats)
|
||||||
self._set_metadata('researcher', self.owner)
|
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('omap_index', self.omap_index)
|
||||||
self._set_metadata('rmap_index', self.rmap_index)
|
self._set_metadata('rmap_index', self.rmap_index)
|
||||||
self._set_metadata('nmap_index', self.nmap_index)
|
self._set_metadata('nmap_index', self.nmap_index)
|
||||||
self._txn_commit()
|
|
||||||
|
|
||||||
self._close()
|
self._close()
|
||||||
self.db_is_open = False
|
self.db_is_open = False
|
||||||
|
Loading…
Reference in New Issue
Block a user