Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
31ad26ac
Commit
31ad26ac
authored
Jan 03, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: fix handling of unresolved conflicts on old and recent ZODB
parent
053c7d76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
neo/client/app.py
neo/client/app.py
+9
-4
No files found.
neo/client/app.py
View file @
31ad26ac
...
@@ -637,10 +637,15 @@ class Application(object):
...
@@ -637,10 +637,15 @@ class Application(object):
# A later serial has already been resolved, skip.
# A later serial has already been resolved, skip.
resolved_serial_set
.
update
(
conflict_serial_set
)
resolved_serial_set
.
update
(
conflict_serial_set
)
continue
continue
new_data
=
tryToResolveConflict
(
oid
,
conflict_serial
,
# BBB: On ZODB < 3.10, tryToResolveConflict returns None
serial
,
data
)
# instead of raising ConflictError.
try
:
new_data
=
tryToResolveConflict
(
oid
,
conflict_serial
,
serial
,
data
)
except
ConflictError
:
new_data
=
None
if
new_data
is
not
None
:
if
new_data
is
not
None
:
logging
.
info
(
'Conflict resolution succeed for '
logging
.
info
(
'Conflict resolution succeed
ed
for '
'%r:%r with %r'
,
dump
(
oid
),
dump
(
serial
),
'%r:%r with %r'
,
dump
(
oid
),
dump
(
serial
),
dump
(
conflict_serial
))
dump
(
conflict_serial
))
# Mark this conflict as resolved
# Mark this conflict as resolved
...
@@ -655,7 +660,7 @@ class Application(object):
...
@@ -655,7 +660,7 @@ class Application(object):
logging
.
info
(
'Conflict resolution failed for '
logging
.
info
(
'Conflict resolution failed for '
'%r:%r with %r'
,
dump
(
oid
),
dump
(
serial
),
'%r:%r with %r'
,
dump
(
oid
),
dump
(
serial
),
dump
(
conflict_serial
))
dump
(
conflict_serial
))
raise
ConflictError
(
oid
=
oid
,
serials
=
(
txn_context
[
'ttid'
]
,
raise
ConflictError
(
oid
=
oid
,
serials
=
(
conflict_serial
,
serial
),
data
=
data
)
serial
),
data
=
data
)
return
result
return
result
...
...
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