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
f5f670c2
Commit
f5f670c2
authored
Jul 09, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handle_all_serials for the new and old protocols.
parent
e068c311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/ZODB/tests/StorageTestBase.py
src/ZODB/tests/StorageTestBase.py
+12
-4
No files found.
src/ZODB/tests/StorageTestBase.py
View file @
f5f670c2
...
@@ -113,16 +113,24 @@ def handle_all_serials(oid, *args):
...
@@ -113,16 +113,24 @@ def handle_all_serials(oid, *args):
The original interface just returned the serialno for the
The original interface just returned the serialno for the
object.
object.
The updated multi-commit API returns nothing from store(), and
returns a sequence of resolved oids from tpc_vote.
"""
"""
d
=
{}
d
=
{}
for
arg
in
args
:
for
arg
in
args
:
if
isinstance
(
arg
,
bytes
):
if
isinstance
(
arg
,
bytes
):
d
[
oid
]
=
arg
d
[
oid
]
=
arg
elif
arg
:
elif
arg
:
for
oid
,
serial
in
arg
:
for
t
in
arg
:
if
not
isinstance
(
serial
,
bytes
):
if
isinstance
(
t
,
bytes
):
raise
serial
# error from ZEO server
# This will be the tid returned by tpc_finish.
d
[
oid
]
=
serial
pass
else
:
oid
,
serial
=
t
if
not
isinstance
(
serial
,
bytes
):
raise
serial
# error from ZEO server
d
[
oid
]
=
serial
return
d
return
d
def
handle_serials
(
oid
,
*
args
):
def
handle_serials
(
oid
,
*
args
):
...
...
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