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
c90364c9
Commit
c90364c9
authored
Nov 26, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zeoVerify() to use getSerial() instead of load().
parent
cd5c5403
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+27
-7
No files found.
src/ZEO/StorageServer.py
View file @
c90364c9
...
...
@@ -347,14 +347,34 @@ class ZEOStorage:
def
zeoVerify
(
self
,
oid
,
s
,
sv
):
try
:
p
,
os
,
v
,
pv
,
osv
=
self
.
zeoLoad
(
oid
)
except
:
# except what?
return
None
if
os
!=
s
:
os
=
self
.
getSerial
(
oid
)
except
KeyError
:
self
.
client
.
invalidateVerify
((
oid
,
''
))
elif
osv
!=
sv
:
self
.
client
.
invalidateVerify
((
oid
,
v
))
# XXX It's not clear what we should do now. The KeyError
# could be caused by an object uncreation, in which case
# invalidation is right. It could be an application bug
# that left a dangling reference, in which case it's bad.
else
:
# If the client has version data, the logic is a bit more
# complicated. If the current serial number matches the
# client serial number, then the non-version data must
# also be valid. If the current serialno is for a
# version, then the non-version data can't change.
# If the version serialno isn't valid, then the
# non-version serialno may or may not be valid. Rather
# than trying to figure it whether it is valid, we just
# invalidate it. Sending an invalidation for the
# non-version data implies invalidating the version data
# too, since an update to non-version data can only occur
# after the version is aborted or committed.
if
sv
:
if
sv
!=
os
:
self
.
client
.
invalidateVerify
((
oid
,
''
))
else
:
if
s
!=
os
:
self
.
client
.
invalidateVerify
((
oid
,
''
))
def
endZeoVerify
(
self
):
self
.
client
.
endVerify
()
...
...
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