Commit d5fb268f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 550bf54b
...@@ -892,13 +892,15 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid] ...@@ -892,13 +892,15 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
continue // key not covered continue // key not covered
} }
// XXX check for bnode.node.(*Tree) (ø tree case)
// +bucket if that bucket is reached for the first time // +bucket if that bucket is reached for the first time
if !bnode.done { if !bnode.done {
δB, err := diffB(ctx, nil, bnode.node.(*Bucket)) var δB map[Key]ΔValue
if err != nil { bbucket, ok := bnode.node.(*Bucket)
return nil, err if ok { // !ok means ø tree
δB, err = diffB(ctx, nil, bbucket)
if err != nil {
return nil, err
}
} }
// δ <- δB // δ <- δB
......
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