Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
bdefc9a6
Commit
bdefc9a6
authored
Jul 27, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8b61f77a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
go/zodb/btree/btree.go
go/zodb/btree/btree.go
+3
-3
No files found.
go/zodb/btree/btree.go
View file @
bdefc9a6
...
@@ -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
.
Py
Persistent
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
.
Py
Persistent
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment