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
a4a3691f
Commit
a4a3691f
authored
Aug 07, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a missed change from the 2.2 branch
parent
ce3b938b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/ZODB/Transaction.py
src/ZODB/Transaction.py
+7
-6
No files found.
src/ZODB/Transaction.py
View file @
a4a3691f
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
"""Transaction management
"""Transaction management
$Id: Transaction.py,v 1.2
3 2000/06/05 11:04:32 jim
Exp $"""
$Id: Transaction.py,v 1.2
4 2000/08/07 20:44:58 brian
Exp $"""
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
import
time
,
sys
,
struct
,
POSException
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
from
struct
import
pack
...
@@ -295,16 +295,17 @@ class Transaction:
...
@@ -295,16 +295,17 @@ class Transaction:
try
:
try
:
j
.
tpc_finish
(
self
)
# This should never fail
j
.
tpc_finish
(
self
)
# This should never fail
except
:
except
:
# Bug if it does, we need to keep track of it and
not allow
# Bug if it does, we need to keep track of it and
# any more work without at least a restart!
#
not allow
any more work without at least a restart!
global
hosed
global
hosed
hosed
=
1
hosed
=
1
LOG
(
'ZODB'
,
PANIC
,
LOG
(
'ZODB'
,
PANIC
,
"A storage error occurred in the last phase of a "
"A storage error occurred in the last phase of a "
"two-phase commit. This shouldn
\
'
t happen. "
"two-phase commit. This shouldn
\
'
t happen. "
"The application may be in a hosed state, so "
"The application may be in a hosed state, so "
"we will not allow transactions to commit from "
"transactions will not be allowed to commit "
"here on"
,
error
=
sys
.
exc_info
())
"until the site/storage is reset by a restart. "
,
error
=
sys
.
exc_info
())
if
t
is
None
:
if
t
is
None
:
t
,
v
,
tb
=
sys
.
exc_info
()
t
,
v
,
tb
=
sys
.
exc_info
()
...
...
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