Skip to content

Commit

Permalink
Fixing uncaught exception problem on shutdown
Browse files Browse the repository at this point in the history
Nested connections try to clean up themselves multiple
times. This does not work
  • Loading branch information
do3cc committed Mar 17, 2016
1 parent d15abe8 commit b8c8284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/HISTORY.rst
@@ -1,6 +1,8 @@
Historical ZODB Changelog
#########################

- Cleanup of nested mvcc connections could have failed.

3.10.5 (2011-11-19)
===================

Expand Down
3 changes: 2 additions & 1 deletion src/ZODB/Connection.py
Expand Up @@ -1085,7 +1085,8 @@ def _resetCache(self):
def _release_resources(self):
for c in six.itervalues(self.connections):
if c._mvcc_storage:
c._storage.release()
if c._storage is not None:
c._storage.release()
c._storage = c._normal_storage = None
c._cache = PickleCache(self, 0, 0)

Expand Down

0 comments on commit b8c8284

Please sign in to comment.