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
fe799ecc
Commit
fe799ecc
authored
Jan 26, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that a transaction that is successfully begun is always
aborted.
parent
eaa9c142
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/ZODB/tests/Synchronization.py
src/ZODB/tests/Synchronization.py
+10
-3
No files found.
src/ZODB/tests/Synchronization.py
View file @
fe799ecc
...
@@ -108,19 +108,26 @@ class SynchronizedStorage:
...
@@ -108,19 +108,26 @@ class SynchronizedStorage:
self
.
_storage
.
tpc_abort
(
Transaction
())
self
.
_storage
.
tpc_abort
(
Transaction
())
def
checkAbortWrongTrans
(
self
):
def
checkAbortWrongTrans
(
self
):
self
.
_storage
.
tpc_begin
(
Transaction
())
t
=
Transaction
()
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_abort
(
Transaction
())
self
.
_storage
.
tpc_abort
(
Transaction
())
self
.
_storage
.
tpc_abort
(
t
)
def
checkFinishNotCommitting
(
self
):
def
checkFinishNotCommitting
(
self
):
self
.
_storage
.
tpc_finish
(
Transaction
())
t
=
Transaction
()
self
.
_storage
.
tpc_finish
(
t
)
self
.
_storage
.
tpc_abort
(
t
)
def
checkFinishWrongTrans
(
self
):
def
checkFinishWrongTrans
(
self
):
self
.
_storage
.
tpc_begin
(
Transaction
())
t
=
Transaction
()
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_finish
(
Transaction
())
self
.
_storage
.
tpc_finish
(
Transaction
())
self
.
_storage
.
tpc_abort
(
t
)
def
checkBeginCommitting
(
self
):
def
checkBeginCommitting
(
self
):
t
=
Transaction
()
t
=
Transaction
()
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_begin
(
t
)
self
.
_storage
.
tpc_abort
(
t
)
# XXX how to check undo?
# XXX how to check undo?
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