Commit e31e7dbb authored by Aurel's avatar Aurel Committed by Kazuhiko Shiozaki

MVCC adapter use less args for load

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