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
42569a8a
Commit
42569a8a
authored
Oct 05, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tpc_abort(): Release the commit lock no matter what.
parent
d6d724bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
NEWS.txt
NEWS.txt
+10
-0
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+1
-1
No files found.
NEWS.txt
View file @
42569a8a
...
...
@@ -5,6 +5,7 @@ Release date: 04-Oct-2005
Following are dates of internal releases (to support ongoing Zope 2
development) since ZODB 3.4's last public release:
- 3.4.2b3 05-Oct-2005
- 3.4.2b2 04-Oct-2005
- 3.4.2b1 03-Oct-2005
...
...
@@ -18,6 +19,15 @@ Savepoints
happen, and stopped happening for subtransaction commits too. Making a
savepoint (or doing a subtransaction commit) does invoke cache gc now.
BaseStorage
-----------
- (3.4.2b3) Nothing done by ``tpc_abort()`` should raise an exception.
However, if something does (an error case), ``BaseStorage.tpc_abort()``
left the commit lock in the acquired state, causing any later attempt
to commit changes hang.
PersistentMapping
-----------------
...
...
src/ZODB/BaseStorage.py
View file @
42569a8a
...
...
@@ -192,8 +192,8 @@ class BaseStorage(UndoLogCompatible):
self
.
_abort
()
self
.
_clear_temp
()
self
.
_transaction
=
None
self
.
_commit_lock_release
()
finally
:
self
.
_commit_lock_release
()
self
.
_lock_release
()
def
_abort
(
self
):
...
...
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