Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
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
Show 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))
...
@@ -204,6 +204,8 @@ func (t *IOBTree) VGet(ctx context.Context, key int32, visit func(node IONode))
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
)
}
}
...
@@ -278,6 +280,8 @@ func (t *IOBTree) VMinKey(ctx context.Context, visit func(node IONode)) (_ int32
...
@@ -278,6 +280,8 @@ func (t *IOBTree) VMinKey(ctx context.Context, visit func(node IONode)) (_ int32
visit
(
child
)
visit
(
child
)
}
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
switch
child
:=
child
.
(
type
)
{
case
*
IOBTree
:
case
*
IOBTree
:
t
=
child
t
=
child
...
@@ -331,6 +335,8 @@ func (t *IOBTree) VMaxKey(ctx context.Context, visit func(node IONode)) (_ int32
...
@@ -331,6 +335,8 @@ func (t *IOBTree) VMaxKey(ctx context.Context, visit func(node IONode)) (_ int32
visit
(
child
)
visit
(
child
)
}
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
switch
child
:=
child
.
(
type
)
{
case
*
IOBTree
:
case
*
IOBTree
:
t
=
child
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))
...
@@ -204,6 +204,8 @@ func (t *LOBTree) VGet(ctx context.Context, key int64, visit func(node LONode))
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
)
}
}
...
@@ -278,6 +280,8 @@ func (t *LOBTree) VMinKey(ctx context.Context, visit func(node LONode)) (_ int64
...
@@ -278,6 +280,8 @@ func (t *LOBTree) VMinKey(ctx context.Context, visit func(node LONode)) (_ int64
visit
(
child
)
visit
(
child
)
}
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
switch
child
:=
child
.
(
type
)
{
case
*
LOBTree
:
case
*
LOBTree
:
t
=
child
t
=
child
...
@@ -331,6 +335,8 @@ func (t *LOBTree) VMaxKey(ctx context.Context, visit func(node LONode)) (_ int64
...
@@ -331,6 +335,8 @@ func (t *LOBTree) VMaxKey(ctx context.Context, visit func(node LONode)) (_ int64
visit
(
child
)
visit
(
child
)
}
}
// XXX verify child keys are in valid range according to parent
switch
child
:=
child
.
(
type
)
{
switch
child
:=
child
.
(
type
)
{
case
*
LOBTree
:
case
*
LOBTree
:
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