Commit c990d511 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent af686f0f
...@@ -195,7 +195,15 @@ func (bt *ZBTree) PySetState(pystate interface{}) error { ...@@ -195,7 +195,15 @@ func (bt *ZBTree) PySetState(pystate interface{}) error {
// btree with 1 child bucket without oid // btree with 1 child bucket without oid
if len(t) == 1 { if len(t) == 1 {
// TODO bucket := &ZBucket{PyPersistent: nil /* FIXME */}
err := bucket.PySetState(t[0])
if err != nil {
// XXX
}
bt.firstbucket = bucket
bt.data = []zBTreeItem{{key: 0, child: bucket}}
return nil
} }
// regular btree // regular btree
......
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