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
cc5ad248
Commit
cc5ad248
authored
Jun 12, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change test for None oid in invalidate() to assert.
Reindent MUCH_RING_CHECKING test.
parent
b731a65d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/ZODB/Connection.py
src/ZODB/Connection.py
+7
-7
No files found.
src/ZODB/Connection.py
View file @
cc5ad248
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.6
8 2002/06/12 15:30:05
jeremy Exp $"""
$Id: Connection.py,v 1.6
9 2002/06/12 19:40:47
jeremy Exp $"""
from
cPickleCache
import
PickleCache
,
MUCH_RING_CHECKING
from
POSException
import
ConflictError
,
ReadConflictError
...
...
@@ -32,10 +32,10 @@ from types import StringType, ClassType
global_code_timestamp
=
0
if
MUCH_RING_CHECKING
:
# To get rid of this warning, change the define inside
# cPickleCache.c and recompile.
LOG
(
'ZODB'
,
WARNING
,
'Using cPickleCache with low performance (but extra debugging checks)'
)
# To get rid of this warning, change the define inside
# cPickleCache.c and recompile.
LOG
(
'ZODB'
,
WARNING
,
'Using cPickleCache with low performance (but extra debugging checks)'
)
del
MUCH_RING_CHECKING
def
updateCodeTimestamp
():
...
...
@@ -225,8 +225,8 @@ class Connection(ExportImport.ExportImport):
if
object
is
self
:
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
else
:
if
object
.
_p_oid
is
not
None
:
self
.
_cache
.
invalidate
(
object
.
_p_oid
)
assert
object
.
_p_oid
is
not
None
self
.
_cache
.
invalidate
(
object
.
_p_oid
)
def
cacheFullSweep
(
self
,
dt
=
0
):
self
.
_cache
.
full_sweep
(
dt
)
...
...
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