Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
ZODB
Commits
e85d5d2a
Commit
e85d5d2a
authored
25 years ago
by
Jim Fulton
Browse files
Options
Download
Email Patches
Plain Diff
Added a method to get debugging info.
parent
6b23d028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
trunk/src/ZODB/DB.py
trunk/src/ZODB/DB.py
+15
-2
No files found.
trunk/src/ZODB/DB.py
View file @
e85d5d2a
...
...
@@ -84,14 +84,15 @@
##############################################################################
"""Database objects
$Id: DB.py,v 1.1
3
1999/08/
16 13:54:14
jim Exp $"""
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
$Id: DB.py,v 1.1
4
1999/08/
25 17:36:02
jim Exp $"""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
import
cPickle
,
cStringIO
,
sys
,
POSException
from
Connection
import
Connection
from
bpthread
import
allocate_lock
from
Transaction
import
Transaction
from
referencesf
import
referencesf
from
time
import
ctime
StringType
=
type
(
''
)
...
...
@@ -488,6 +489,18 @@ class DB:
return
c
finally
:
self
.
_r
()
def
connectionDebugInfo
(
self
):
r
=
[]
pools
,
pooll
=
self
.
_pools
for
version
,
(
pool
,
allocated
,
lock
)
in
pools
.
items
():
for
c
in
allocated
:
r
.
append
({
'opened'
:
c
.
_opened
and
ctime
(
c
.
_opened
),
'info'
:
c
.
_debug_info
,
'version'
:
version
,
})
return
r
def
pack
(
self
,
t
):
self
.
_storage
.
pack
(
t
,
referencesf
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment