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
50c51b55
Commit
50c51b55
authored
Jan 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment about apparent thread safety of this code.
parent
76c6f4b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+4
-1
No files found.
src/ZEO/ClientStorage.py
View file @
50c51b55
...
@@ -955,8 +955,11 @@ class ClientStorage(object):
...
@@ -955,8 +955,11 @@ class ClientStorage(object):
raise
ClientDisconnected
(
raise
ClientDisconnected
(
'Calling tpc_finish() on a disconnected transaction'
)
'Calling tpc_finish() on a disconnected transaction'
)
# The calls to tpc_finish() and _update_cache() should
# never run currently with another thread, because the
# tpc_cond condition variable prevents more than one
# thread from calling tpc_finish() at a time.
tid
=
self
.
_server
.
tpc_finish
(
id
(
txn
))
tid
=
self
.
_server
.
tpc_finish
(
id
(
txn
))
self
.
_lock
.
acquire
()
# for atomic processing of invalidations
self
.
_lock
.
acquire
()
# for atomic processing of invalidations
try
:
try
:
self
.
_update_cache
(
tid
)
self
.
_update_cache
(
tid
)
...
...
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