Commit f024efee authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent dbb9508a
...@@ -89,50 +89,7 @@ func _trackSetWithCov(rbs xbtreetest.RBucketSet, tracked setKey, outKeyCover *bl ...@@ -89,50 +89,7 @@ func _trackSetWithCov(rbs xbtreetest.RBucketSet, tracked setKey, outKeyCover *bl
if outKeyCover != nil { if outKeyCover != nil {
outKeyCover.AddRange(kb.Keycov) outKeyCover.AddRange(kb.Keycov)
} }
// // trackSet explicitly records only regular buckets.
// // embedded buckets all have oid=zodb.InvalidOid and would lead to z
// newNode := false
trackSet.AddPath(kb.Path()) trackSet.AddPath(kb.Path())
// if kb.Oid != zodb.InvalidOid {
/*
track, already := trackSet[kb.Oid]
if !already {
track = &blib.nodeInTree{parent: kb.parent.oid, nchild: 0}
trackSet[kb.Oid] = track
newNode = true
}
if track.parent != kb.Parent.Oid {
panicf("BUG: %s: B%s -> multiple parents: %s %s", rbs.coverage(), kb.Oid, track.parent, kb.Parent.Oid)
}
*/
// }
/*
p := kb.Parent
for p != nil {
ppoid := zodb.InvalidOid // oid of p.parent
if p.Parent != nil {
ppoid = p.Parent.Oid
}
newParent := false
pt, already := trackSet[p.Oid]
if !already {
pt = &nodeInTree{parent: ppoid, nchild: 0}
trackSet[p.Oid] = pt
newParent = true
}
if pt.parent != ppoid {
panicf("BUG: %s: T%s -> multiple parents: %s %s", rbs.coverage(), p.Oid, pt.parent, ppoid)
}
if newNode {
pt.nchild++
}
newNode = newParent
p = p.Parent
}
*/
} }
return trackSet return trackSet
} }
......
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