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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
154d391d
Commit
154d391d
authored
Mar 29, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nit: move global decl before first use of hosed
(Previous code generates warning with Py 2.1)
parent
45dc70ed
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 @
154d391d
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Transaction management
$Id: Transaction.py,v 1.2
7 2001/02/26 20:33:50 brian
Exp $"""
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
$Id: Transaction.py,v 1.2
8 2001/03/29 17:43:19 jeremy
Exp $"""
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
...
...
@@ -209,6 +209,8 @@ class Transaction:
def
commit
(
self
,
subtransaction
=
None
):
'Finalize the transaction'
global
hosed
objects
=
self
.
_objects
jars
=
{}
jarsv
=
None
...
...
@@ -338,7 +340,6 @@ class Transaction:
# Bug if it does, we need to yell FIRE!
# Someone finished, so don't allow any more
# work without at least a restart!
global
hosed
hosed
=
1
LOG
(
'ZODB'
,
PANIC
,
"A storage error occurred in the last phase of a "
...
...
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