Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
c0a5d90b
Commit
c0a5d90b
authored
Dec 30, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one locking glitch, add comment about the other.
parent
c883752e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+6
-1
No files found.
src/ZEO/ClientStorage.py
View file @
c0a5d90b
...
@@ -587,6 +587,7 @@ class ClientStorage(object):
...
@@ -587,6 +587,7 @@ class ClientStorage(object):
self
.
_pickler
.
fast
=
1
# Don't use the memo
self
.
_pickler
.
fast
=
1
# Don't use the memo
# XXX should batch these operations for efficiency
# XXX should batch these operations for efficiency
# XXX need to acquire lock...
for
oid
,
tid
,
version
in
self
.
_cache
.
contents
():
for
oid
,
tid
,
version
in
self
.
_cache
.
contents
():
server
.
verify
(
oid
,
version
,
tid
)
server
.
verify
(
oid
,
version
,
tid
)
self
.
_pending_server
=
server
self
.
_pending_server
=
server
...
@@ -1098,7 +1099,11 @@ class ClientStorage(object):
...
@@ -1098,7 +1099,11 @@ class ClientStorage(object):
def
invalidateTransaction
(
self
,
tid
,
args
):
def
invalidateTransaction
(
self
,
tid
,
args
):
"""Invalidate objects modified by tid."""
"""Invalidate objects modified by tid."""
self
.
_lock
.
acquire
()
try
:
self
.
_cache
.
setLastTid
(
tid
)
self
.
_cache
.
setLastTid
(
tid
)
finally
:
self
.
_lock
.
release
()
if
self
.
_pickler
is
not
None
:
if
self
.
_pickler
is
not
None
:
log2
(
BLATHER
,
log2
(
BLATHER
,
"Transactional invalidation during cache verification"
)
"Transactional invalidation during cache verification"
)
...
...
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