Commit b8c8284d authored by Patrick Gerken's avatar Patrick Gerken

Fixing uncaught exception problem on shutdown

Nested connections try to clean up themselves multiple
times. This does not work
parent d15abe89
Historical ZODB Changelog Historical ZODB Changelog
######################### #########################
- Cleanup of nested mvcc connections could have failed.
3.10.5 (2011-11-19) 3.10.5 (2011-11-19)
=================== ===================
......
...@@ -1085,6 +1085,7 @@ class Connection(ExportImport, object): ...@@ -1085,6 +1085,7 @@ class Connection(ExportImport, object):
def _release_resources(self): def _release_resources(self):
for c in six.itervalues(self.connections): for c in six.itervalues(self.connections):
if c._mvcc_storage: if c._mvcc_storage:
if c._storage is not None:
c._storage.release() c._storage.release()
c._storage = c._normal_storage = None c._storage = c._normal_storage = None
c._cache = PickleCache(self, 0, 0) c._cache = PickleCache(self, 0, 0)
......
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