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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
a10db0a8
Commit
a10db0a8
authored
Jan 24, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of more self._transaction.
parent
d050525a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/ZEO/tests/Cache.py
src/ZEO/tests/Cache.py
+6
-5
No files found.
src/ZEO/tests/Cache.py
View file @
a10db0a8
...
@@ -25,16 +25,17 @@ class TransUndoStorageWithCache:
...
@@ -25,16 +25,17 @@ class TransUndoStorageWithCache:
return
return
# Now start an undo transaction
# Now start an undo transaction
self
.
_transaction
.
note
(
'undo1'
)
t
=
Transaction
()
self
.
_storage
.
tpc_begin
(
self
.
_transaction
)
t
.
note
(
'undo1'
)
self
.
_storage
.
tpc_begin
(
t
)
oids
=
self
.
_storage
.
transactionalUndo
(
tid
,
self
.
_transaction
)
oids
=
self
.
_storage
.
transactionalUndo
(
tid
,
t
)
# Make sure this doesn't load invalid data into the cache
# Make sure this doesn't load invalid data into the cache
self
.
_storage
.
load
(
oid
,
''
)
self
.
_storage
.
load
(
oid
,
''
)
self
.
_storage
.
tpc_vote
(
self
.
_transaction
)
self
.
_storage
.
tpc_vote
(
t
)
self
.
_storage
.
tpc_finish
(
self
.
_transaction
)
self
.
_storage
.
tpc_finish
(
t
)
assert
len
(
oids
)
==
1
assert
len
(
oids
)
==
1
assert
oids
[
0
]
==
oid
assert
oids
[
0
]
==
oid
...
...
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