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
0da3d28c
Commit
0da3d28c
authored
Oct 19, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use a tid of 0 for the first transaction.
Some storages get confused by tid == 0.
parent
2b0c9aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZODB/tests/TransactionalUndoStorage.py
src/ZODB/tests/TransactionalUndoStorage.py
+3
-3
No files found.
src/ZODB/tests/TransactionalUndoStorage.py
View file @
0da3d28c
...
...
@@ -556,7 +556,7 @@ class TransactionalUndoStorage:
orig
=
[]
for
i
in
range
(
BATCHES
):
t
=
Transaction
()
tid
=
p64
(
i
)
tid
=
p64
(
i
+
1
)
s
.
tpc_begin
(
t
,
tid
)
for
j
in
range
(
OBJECTS
):
oid
=
s
.
new_oid
()
...
...
@@ -602,7 +602,7 @@ class TransactionalUndoStorage:
txn
=
iter
[
offset
]
offset
+=
1
tid
=
p64
(
i
)
tid
=
p64
(
i
+
1
)
eq
(
txn
.
tid
,
tid
)
L1
=
[(
rec
.
oid
,
rec
.
serial
,
rec
.
data_txn
)
for
rec
in
txn
]
...
...
@@ -621,7 +621,7 @@ class TransactionalUndoStorage:
offset
+=
1
# The undos are performed in reverse order.
otid
=
p64
(
BATCHES
-
1
-
i
)
otid
=
p64
(
BATCHES
-
i
)
L1
=
[(
rec
.
oid
,
rec
.
data_txn
)
for
rec
in
txn
]
L2
=
[(
oid
,
otid
)
for
_tid
,
oid
,
revid
in
orig
if
_tid
==
otid
]
...
...
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