Commit 8708ccde authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1b838adf
...@@ -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
......
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