Commit ce4ac7b4 authored by Tim Peters's avatar Tim Peters

Restore connectionDebugInfo().

This can't use self._connectionMap, because it needs to
know the version associated with each connection.
parent 4225926d
...@@ -562,7 +562,8 @@ class DB(object): ...@@ -562,7 +562,8 @@ class DB(object):
def connectionDebugInfo(self): def connectionDebugInfo(self):
result = [] result = []
t = time() t = time()
def f(c): for version, pool in self._pools.items():
for c in pool.all_as_list():
o = c._opened o = c._opened
d = c._debug_info d = c._debug_info
if d: if d:
...@@ -577,8 +578,6 @@ class DB(object): ...@@ -577,8 +578,6 @@ class DB(object):
'info': d, 'info': d,
'version': version, 'version': version,
}) })
self._connectionMap(f)
return result return result
def getActivityMonitor(self): def getActivityMonitor(self):
......
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