Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tempstorage
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
nexedi
tempstorage
Commits
3f8e96db
Commit
3f8e96db
authored
Jul 02, 2005
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement loadEx for ZEO-mounted tempstorages to work properly under ZODB 3.3.
parent
37fc520e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
TemporaryStorage.py
TemporaryStorage.py
+19
-0
No files found.
TemporaryStorage.py
View file @
3f8e96db
...
...
@@ -120,6 +120,25 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
finally
:
self
.
_lock_release
()
# Apparently loadEx is required to use this as a ZEO storage for
# ZODB 3.3. There are no docs for loadEx, and the tests don't
# make it totally clear what it's meant to do. In MappingStorage,
# it has the same argument signature and returns the same thing
# that load does, so we do the same here. There is a comment in
# FileStorage about its loadEx method implementation that says "a
# variant of load that also returns a transaction id. ZEO wants
# this for managing its cache". But 'load' appears to do that
# too, so uh, who knows. Apparently it also has something to do
# with the ZODB iteration interface, because it's tested within
# the IteratorStorage tests, although we don't need to support the
# iterator interface for ZEO to work, so we don't. MVCC, despite
# descriptions to the contrary on the Wiki doesn't actually need
# the iterator interface either. Just doing my duty to promote
# the lost art of voodoo programming here, there's no need to
# thank me! - CM
loadEx
=
load
def
loadSerial
(
self
,
oid
,
serial
,
marker
=
[]):
""" this is only useful to make conflict resolution work. It
does not actually implement all the semantics that a revisioning
...
...
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