Commit bdefc9a6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8b61f77a
...@@ -42,7 +42,7 @@ type KEY int64 ...@@ -42,7 +42,7 @@ type KEY int64
// are chained together via 'next', so that the entire BTree contents // are chained together via 'next', so that the entire BTree contents
// can be traversed in sorted order quickly and easily. // can be traversed in sorted order quickly and easily.
type Bucket struct { type Bucket struct {
*zodb.PyPersistent zodb.Persistent
next *Bucket // the bucket with the next-larger keys next *Bucket // the bucket with the next-larger keys
keys []KEY // 'len' keys, in increasing order keys []KEY // 'len' keys, in increasing order
...@@ -60,7 +60,7 @@ type zBTreeItem struct { ...@@ -60,7 +60,7 @@ type zBTreeItem struct {
// See https://github.com/zopefoundation/BTrees/blob/4.5.0-1-gc8bf24e/BTrees/Development.txt#L198 // See https://github.com/zopefoundation/BTrees/blob/4.5.0-1-gc8bf24e/BTrees/Development.txt#L198
// for details. // for details.
type BTree struct { type BTree struct {
*zodb.PyPersistent zodb.Persistent
// firstbucket points to the bucket containing the smallest key in // firstbucket points to the bucket containing the smallest key in
// the BTree. This is found by traversing leftmost child pointers // the BTree. This is found by traversing leftmost child pointers
...@@ -202,7 +202,7 @@ func (bt *btreeState) PySetState(pystate interface{}) error { ...@@ -202,7 +202,7 @@ func (bt *btreeState) 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 {
bucket := &Bucket{PyPersistent: nil /* FIXME */} bucket := &Bucket{/* FIXME */}
err := (*bucketState)(bucket).PySetState(t[0]) err := (*bucketState)(bucket).PySetState(t[0])
if err != nil { if err != nil {
// XXX // XXX
......
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