Commit c37bcfa3 authored by Julien Muchembled's avatar Julien Muchembled

importer: fix closure of ZODB, and also do it when the import is finished

parent 6608a868
......@@ -420,7 +420,7 @@ class ImporterDatabaseManager(DatabaseManager):
if self._writeback:
if isinstance(self.zodb, list): # _setup called
if isinstance(self.zodb, tuple): # _setup called
for zodb in self.zodb:
......@@ -518,6 +518,9 @@ class ImporterDatabaseManager(DatabaseManager):
setattr(self, x, getattr(self.db, x))
for zodb in self.zodb:
self.zodb = None
def _iter_zodb(self, zodb_list):
util.setproctitle('neostorage: import')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment