Commit 9f354dc7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ce07e61c
......@@ -534,8 +534,10 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
aChildren := map[zodb.Oid]Node{}
for _, __ := range av {
child := __.Child()
if δZTC.Has(child.POid()) {
aChildren[child.POid()] = child // InvalidOid = embedded bucket
coid := child.POid()
if δZTC.Has(coid) ||
(len(av) == 1 && coid == zodb.InvalidOid) /* embedded bucket */ {
aChildren[coid] = child
}
}
fmt.Printf(" aChildren: %v\n", aChildren)
......
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