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
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
Nicolas Wavrant
ZODB
Commits
c67abb1b
Commit
c67abb1b
authored
Aug 16, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tpc_abort() below tpc_begin().
parent
5809a29a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+15
-15
No files found.
src/ZEO/ClientStorage.py
View file @
c67abb1b
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Network ZODB storage client
$Id: ClientStorage.py,v 1.
49 2002/08/16 22:48:35
jeremy Exp $
$Id: ClientStorage.py,v 1.
50 2002/08/16 22:49:40
jeremy Exp $
"""
import
cPickle
...
...
@@ -322,20 +322,6 @@ class ClientStorage:
self
.
_server
.
vote
(
self
.
_serial
)
return
self
.
_check_serials
()
def
tpc_abort
(
self
,
transaction
):
if
transaction
is
not
self
.
_transaction
:
return
try
:
self
.
_server
.
tpc_abort
(
self
.
_serial
)
self
.
_tbuf
.
clear
()
self
.
_seriald
.
clear
()
del
self
.
_serials
[:]
finally
:
self
.
tpc_cond
.
acquire
()
self
.
_transaction
=
None
self
.
tpc_cond
.
notify
()
self
.
tpc_cond
.
release
()
def
tpc_begin
(
self
,
transaction
,
tid
=
None
,
status
=
' '
):
self
.
tpc_cond
.
acquire
()
while
self
.
_transaction
is
not
None
:
...
...
@@ -375,6 +361,20 @@ class ClientStorage:
self
.
_seriald
.
clear
()
del
self
.
_serials
[:]
def
tpc_abort
(
self
,
transaction
):
if
transaction
is
not
self
.
_transaction
:
return
try
:
self
.
_server
.
tpc_abort
(
self
.
_serial
)
self
.
_tbuf
.
clear
()
self
.
_seriald
.
clear
()
del
self
.
_serials
[:]
finally
:
self
.
tpc_cond
.
acquire
()
self
.
_transaction
=
None
self
.
tpc_cond
.
notify
()
self
.
tpc_cond
.
release
()
def
tpc_finish
(
self
,
transaction
,
f
=
None
):
if
transaction
is
not
self
.
_transaction
:
return
...
...
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