Commit c3efda8d authored by Kirill Smelkov's avatar Kirill Smelkov

.

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