Commit f7215d1c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 08d1b294
......@@ -241,7 +241,9 @@ func (tidx trackIndex) ApplyΔ(δ *δtrackIndex) {
}
tidx[oid] = &nodeTrack{parent: δt.parent, nchild: 0}
δnchild[δt.parent] += 1 // remeber to nchild++ in parent
if δt.parent != zodb.InvalidOid {
δnchild[δt.parent] += 1 // remeber to nchild++ in parent
}
}
for parent, δnc := range δnchild {
tidx[parent].nchild += δnc
......@@ -785,6 +787,7 @@ func treediff(ctx context.Context, root zodb.Oid, δtops SetOid, δZTC SetOid, t
// DEL k -> Tkextra += k
// +k -> Tkextra -= k
tracef("-> δtop: %v\n", δtop)
tracef("-> δtrackTop: %v\n", δtrackTop)
for k,δv := range δtop {
δT[k] = δv
}
......
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