Commit c3efda8d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4dbec911
......@@ -44,7 +44,7 @@ XXX
from __future__ import print_function, absolute_import
import sys
from golang import func, defer
from golang import func, defer, panic
from golang import time
from ZODB import DB
import transaction
......@@ -54,6 +54,8 @@ from wendelin.wcfs.internal import xbtree
from wendelin.bigfile.file_zodb import ZBlk
from zodbtools.util import storageFromURL
import BTrees.LOBTree
# kvEncode encodes key->value maping into text.
# e.g. {1:'a', 2:'b'} -> '1:a,2:b'
......@@ -156,7 +158,7 @@ def treedeltaGenAllStructs(zstor, kv1txt, kv2txt, n):
t2AllStructs = list(xbtree.AllStructs(kv2.keys(), maxdepth, maxsplit))
# emit initial kv1 state prepared as ZODB would natively
ztree = valdict['treedelta/tree'] = XLOTree()
ztree = valdict['treedelta/tree'] = BTrees.LOBTree.LOBTree() # XXX -> XLOTree (small nodes)
for k in sorted(kv1):
ztree[k] = kv1[k]
transaction.commit()
......
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