Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
a2ccfe68
Commit
a2ccfe68
authored
Aug 25, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extra meta-data for debugging purposes.
parent
c0fc1c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/ZODB/Connection.py
src/ZODB/Connection.py
+11
-3
No files found.
src/ZODB/Connection.py
View file @
a2ccfe68
...
@@ -84,14 +84,15 @@
...
@@ -84,14 +84,15 @@
##############################################################################
##############################################################################
"""Database connection support
"""Database connection support
$Id: Connection.py,v 1.2
2 1999/08/13 21:49:07 kl
m Exp $"""
$Id: Connection.py,v 1.2
3 1999/08/25 17:35:45 ji
m Exp $"""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
from
POSException
import
ConflictError
,
ExportError
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
cPickle
import
Unpickler
,
Pickler
from
cPickle
import
Unpickler
,
Pickler
from
ExtensionClass
import
Base
from
ExtensionClass
import
Base
from
time
import
time
import
Transaction
,
string
,
ExportImport
,
sys
,
traceback
,
TmpStore
import
Transaction
,
string
,
ExportImport
,
sys
,
traceback
,
TmpStore
from
zLOG
import
LOG
,
ERROR
from
zLOG
import
LOG
,
ERROR
...
@@ -110,6 +111,8 @@ class Connection(ExportImport.ExportImport):
...
@@ -110,6 +111,8 @@ class Connection(ExportImport.ExportImport):
The Connection manages movement of objects in and out of object storage.
The Connection manages movement of objects in and out of object storage.
"""
"""
_tmp
=
None
_tmp
=
None
_debug_info
=
()
_opened
=
None
def
__init__
(
self
,
version
=
''
,
cache_size
=
400
,
def
__init__
(
self
,
version
=
''
,
cache_size
=
400
,
cache_deactivate_after
=
60
):
cache_deactivate_after
=
60
):
...
@@ -220,6 +223,7 @@ class Connection(ExportImport.ExportImport):
...
@@ -220,6 +223,7 @@ class Connection(ExportImport.ExportImport):
self
.
_storage
=
s
=
odb
.
_storage
self
.
_storage
=
s
=
odb
.
_storage
self
.
new_oid
=
s
.
new_oid
self
.
new_oid
=
s
.
new_oid
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
self
.
_opened
=
time
()
return
self
return
self
...
@@ -233,7 +237,8 @@ class Connection(ExportImport.ExportImport):
...
@@ -233,7 +237,8 @@ class Connection(ExportImport.ExportImport):
def
close
(
self
):
def
close
(
self
):
self
.
_incrgc
()
self
.
_incrgc
()
db
=
self
.
_db
db
=
self
.
_db
self
.
_db
=
self
.
_storage
=
self
.
_tmp
=
self
.
new_oid
=
None
self
.
_db
=
self
.
_storage
=
self
.
_tmp
=
self
.
new_oid
=
self
.
_opened
=
None
self
.
_debug_info
=
()
db
.
_closeConnection
(
self
)
db
.
_closeConnection
(
self
)
def
commit
(
self
,
object
,
transaction
):
def
commit
(
self
,
object
,
transaction
):
...
@@ -470,6 +475,9 @@ class Connection(ExportImport.ExportImport):
...
@@ -470,6 +475,9 @@ class Connection(ExportImport.ExportImport):
get_transaction
().
abort
()
get_transaction
().
abort
()
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
def
getDebugInfo
(
self
):
return
self
.
_debug_info
def
setDebugInfo
(
self
,
*
args
):
self
.
_debug_info
=
self
.
_debug_info
+
args
######################################################################
######################################################################
# Just plain weird. Don't try this at home kids.
# Just plain weird. Don't try this at home kids.
...
...
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