Commit 1f9b22f0 authored by Aurel's avatar Aurel Committed by Jérome Perrin

MVCC adapter use less args for load

parent 46f12057
......@@ -103,7 +103,11 @@ class PickleUpdater(ObjectReader, ObjectWriter, object):
self.lazy = LazyBTree()
self.oid_dict = {}
self.oid_set = set()
try:
p, serial = self._conn._storage.load(oid, '')
except TypeError:
# MVCCAdapter of ZODB5
p, serial = self._conn._storage.load(oid)
unpickler = self._get_unpickler(p)
def find_global(*args):
self.do_migrate = args != (klass.__module__, klass.__name__) and \
......
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