9588: DB-API import loses researcher and bookmarks

This commit is contained in:
Doug Blank 2016-07-21 00:07:51 -04:00
parent 894e74d127
commit c817554dbf

View File

@ -1763,6 +1763,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
filename = os.path.join(self._directory, "meta_data.db")
touch(filename)
# Save metadata
self.transaction_backend_begin()
self.set_metadata('name_formats', self.name_formats)
self.set_metadata('researcher', self.owner)
@ -1811,6 +1812,7 @@ 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.transaction_backend_commit()
self.close_backend()
self.db_is_open = False