Commit b2d68ae9 authored by Tim Peters's avatar Tim Peters

Collector #1514: ZODB 3.3 failure when accessing the Debug info

Restored the ._opened attribute of Connection.  Don't know why it went away
in 3.3.  Probably because it was only referenced by connectionDebugInfo(),
and Jeremy didn't realize anyone used that <wink>.
parent 7016ec3b
......@@ -178,6 +178,7 @@ class Connection(ExportImport, object):
self._log = logging.getLogger("ZODB.Connection")
self._storage = None
self._debug_info = ()
self._opened = None # time.time() when DB.open() opened us
self._version = version
self._cache = cache = PickleCache(self, cache_size)
......@@ -434,6 +435,7 @@ class Connection(ExportImport, object):
self._storage = odb._storage
self._sortKey = odb._storage.sortKey
self.new_oid = odb._storage.new_oid
self._opened = time()
if synch is not None:
self._synch = synch
if mvcc is not None:
......@@ -569,6 +571,7 @@ class Connection(ExportImport, object):
self.__onCloseCallbacks = None
self._storage = self._tmp = self.new_oid = None
self._debug_info = ()
self._opened = None
# Return the connection to the pool.
if self._db is not None:
if self._synch:
......
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