Commit c62e4fa5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5b329895
......@@ -390,7 +390,7 @@ def Restructure(ztree, newStructure):
# set znode states according to established tnew->znode association
rlevelv = rlevelv_orig
for rnodev in rlevelv:
for rnodev in reversed(rlevelv): # bottom -> up
for rn in rnodev:
node = rn.node
assert isinstance(node, (Tree,Bucket))
......
......@@ -534,8 +534,14 @@ def test_restructure():
assert isinstance(b3, LOBucket)
assert crack_bucket(b1) == ([1], [X[1]])
assert crack_bucket(b3) == ([3], [X[3]])
assert b1._p_oid is None
assert b3._p_oid is None
R(z, 'T/B1,3')
kind, keys, kids = crack_btree(z)
# XXX here -> btree_one
# XXX -> after commit
assert (kind, keys) == (BTREE_NORMAL, [])
assert len(kids) == 1
b13 = kids[0]
......
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