Commit 928ffd7f authored by Julien Muchembled's avatar Julien Muchembled

client: explain why we implement load() like loadBefore()

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2825 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fe3fd5c3
......@@ -95,6 +95,13 @@ class Storage(BaseStorage.BaseStorage,
return self.app._cache
def load(self, oid, version=''):
# In order to know if it was safe to get the last revision of an object
# instead of using loadBefore(), ZODB.Connection._setstate relies on
# the fact that retrieving data from a remote storage forces incoming
# invalidations to be received.
# But in NEO, invalidations are not received from the same network
# connection that the one used to retrieve data.
# So we must implement load() like a loadBefore().
# XXX: interface definition states that version parameter is
# mandatory, while some ZODB tests do not provide it. For now, make
# it optional.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment