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
496019d6
Commit
496019d6
authored
May 11, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
14317e58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
go/zodb/btree/check.go
go/zodb/btree/check.go
+3
-0
go/zodb/btree/ziobtree.go
go/zodb/btree/ziobtree.go
+6
-0
go/zodb/btree/zlobtree.go
go/zodb/btree/zlobtree.go
+6
-0
No files found.
go/zodb/btree/check.go
0 → 100644
View file @
496019d6
// TODO implement btree checking a-la ztree._check + BTrees.check.check
package
btree
go/zodb/btree/ziobtree.go
View file @
496019d6
...
...
@@ -204,6 +204,8 @@ func (t *IOBTree) VGet(ctx context.Context, key int32, visit func(node IONode))
return
nil
,
false
,
err
}
// XXX verify child keys are in valid range according to parent
if
visit
!=
nil
{
visit
(
child
)
}
...
...
@@ -278,6 +280,8 @@ func (t *IOBTree) VMinKey(ctx context.Context, visit func(node IONode)) (_ int32
visit
(
child
)
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
case
*
IOBTree
:
t
=
child
...
...
@@ -331,6 +335,8 @@ func (t *IOBTree) VMaxKey(ctx context.Context, visit func(node IONode)) (_ int32
visit
(
child
)
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
case
*
IOBTree
:
t
=
child
...
...
go/zodb/btree/zlobtree.go
View file @
496019d6
...
...
@@ -204,6 +204,8 @@ func (t *LOBTree) VGet(ctx context.Context, key int64, visit func(node LONode))
return
nil
,
false
,
err
}
// XXX verify child keys are in valid range according to parent
if
visit
!=
nil
{
visit
(
child
)
}
...
...
@@ -278,6 +280,8 @@ func (t *LOBTree) VMinKey(ctx context.Context, visit func(node LONode)) (_ int64
visit
(
child
)
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
case
*
LOBTree
:
t
=
child
...
...
@@ -331,6 +335,8 @@ func (t *LOBTree) VMaxKey(ctx context.Context, visit func(node LONode)) (_ int64
visit
(
child
)
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
case
*
LOBTree
:
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