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
8708ccde
Commit
8708ccde
authored
Apr 12, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1b838adf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
go/zodb/btree/btree.go.in
go/zodb/btree/btree.go.in
+6
-0
No files found.
go/zodb/btree/btree.go.in
View file @
8708ccde
...
@@ -202,6 +202,8 @@ func (t *BTree) VGet(ctx context.Context, key KEY, visit func(node Node)) (_ int
...
@@ -202,6 +202,8 @@ func (t *BTree) VGet(ctx context.Context, key KEY, visit func(node Node)) (_ int
return nil, false, err
return nil, false, err
}
}
// XXX verify child keys are in valid range according to parent
if visit != nil {
if visit != nil {
visit(child)
visit(child)
}
}
...
@@ -276,6 +278,8 @@ func (t *BTree) VMinKey(ctx context.Context, visit func(node Node)) (_ KEY, ok b
...
@@ -276,6 +278,8 @@ func (t *BTree) VMinKey(ctx context.Context, visit func(node Node)) (_ KEY, ok b
visit(child)
visit(child)
}
}
// XXX verify child keys are in valid range according to parent
switch child := child.(type) {
switch child := child.(type) {
case *BTree:
case *BTree:
t = child
t = child
...
@@ -329,6 +333,8 @@ func (t *BTree) VMaxKey(ctx context.Context, visit func(node Node)) (_ KEY, _ bo
...
@@ -329,6 +333,8 @@ func (t *BTree) VMaxKey(ctx context.Context, visit func(node Node)) (_ KEY, _ bo
visit(child)
visit(child)
}
}
// XXX verify child keys are in valid range according to parent
switch child := child.(type) {
switch child := child.(type) {
case *BTree:
case *BTree:
t = child
t = child
...
...
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