Commit 8110ab56 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e2614eb3
......@@ -217,7 +217,7 @@ func (tidx trackIndex) gc1(oid zodb.Oid) {
return // already not there
}
if t.nchild != 0 {
panicf("gc %v (nchild != 0)", t)
panicf("gc %s %v (nchild != 0)", oid, t)
}
delete(tidx, oid)
......@@ -263,11 +263,11 @@ func (tidx trackIndex) ApplyΔ(δ *δtrackIndex) {
}
}
gcq := []zodb.Oid{}
for parent, δnc := range δnchild {
t := tidx[parent]
for oid, δnc := range δnchild {
t := tidx[oid]
t.nchild += δnc
if t.nchild == 0 {
gcq = append(gcq, t.parent)
gcq = append(gcq, oid)
}
}
for _, oid := range gcq {
......
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