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
Kirill Smelkov
ZODB
Commits
b561c753
Commit
b561c753
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
0f5bd5da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
trunk/src/ZEO/ClientStorage.py
trunk/src/ZEO/ClientStorage.py
+6
-1
No files found.
trunk/src/ZEO/ClientStorage.py
View file @
b561c753
...
...
@@ -587,6 +587,7 @@ class ClientStorage(object):
self
.
_pickler
.
fast
=
1
# Don't use the memo
# XXX should batch these operations for efficiency
# XXX need to acquire lock...
for
oid
,
tid
,
version
in
self
.
_cache
.
contents
():
server
.
verify
(
oid
,
version
,
tid
)
self
.
_pending_server
=
server
...
...
@@ -1098,7 +1099,11 @@ class ClientStorage(object):
def
invalidateTransaction
(
self
,
tid
,
args
):
"""Invalidate objects modified by tid."""
self
.
_cache
.
setLastTid
(
tid
)
self
.
_lock
.
acquire
()
try
:
self
.
_cache
.
setLastTid
(
tid
)
finally
:
self
.
_lock
.
release
()
if
self
.
_pickler
is
not
None
:
log2
(
BLATHER
,
"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