Commit b2bd316e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4b5d1ba1
......@@ -153,6 +153,7 @@ def Trees(zstor, r):
treetxt = treetxt.rstrip() # trim trailin \n
tree = zctx.TopoDecode(treetxt)
ztree = trees[treetxt] = XLOTree()
zctx.zconn.add(ztree) # so that restructure can see we are working under zconn
# tree[k]=v for all k
# do tree.keys() via walkBFS
......@@ -168,7 +169,7 @@ def Trees(zstor, r):
# restructure to requested topology
xbtree.Restructure(ztree, tree)
tid = commit(treetxt)
tid = commit("treegen/trees: %s" % treetxt)
# XXX print more details
print("txn %s -> tree(%s) %s" % (ashex(tid), ashex(ztree._p_oid), treetxt))
......
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