Commit 3f19a3b4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5c2ae713
......@@ -812,13 +812,12 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
achildren := Av.Expand(ra)
for _, ac := range achildren {
acOid := ac.node.POid()
// XXX len(achildren) == 1 && acOid == Invalid -> embedded bucket
_, tracked := trackIdx[acOid]
if !tracked {
continue
}
if !δZTC.Has(acOid) {
if !δZTC.Has(acOid) && /*cannot skip embedded bucket:*/acOid != zodb.InvalidOid {
// check B children for node with ac.oid
// while checking expand Bv till ac.lo and ac.hi_ point to the same node
// ( this does not give exact answer but should be a reasonable heuristic;
......
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