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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
5c5ca791
Commit
5c5ca791
authored
May 09, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug that caused objects to be left in an invalid state
when tpc_begin failed.
parent
4b3ea677
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZODB/Transaction.py
src/ZODB/Transaction.py
+4
-3
No files found.
src/ZODB/Transaction.py
View file @
5c5ca791
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Transaction management
$Id: Transaction.py,v 1.1
8 2000/05/05 19:55:19
jim Exp $"""
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
$Id: Transaction.py,v 1.1
9 2000/05/09 19:03:53
jim Exp $"""
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
...
...
@@ -223,7 +223,7 @@ class Transaction:
try
:
try
:
while
objects
:
o
=
objects
.
pop
()
o
=
objects
[
-
1
]
j
=
getattr
(
o
,
'_p_jar'
,
o
)
if
j
is
None
:
continue
i
=
id
(
j
)
...
...
@@ -235,6 +235,7 @@ class Transaction:
else
:
j
.
tpc_begin
(
self
)
j
.
commit
(
o
,
self
)
del
objects
[
-
1
]
# Commit work done in subtransactions
while
subjars
:
...
...
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