Commit 0c4a570c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 08472be4
......@@ -137,7 +137,7 @@ type ΔBtail struct {
// nodeTrack represents tracking information about a node.
type nodeTrack struct {
parent zodb.Oid // parent node | InvalidOid for root
trackedKeys SetKey // keys tracked under this node; nil for root
trackedKeys SetKey // keys tracked under this node; nil for root XXX only !empty root
}
// ΔB represents a change in BTrees space.
......@@ -517,6 +517,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
aChildren[child.POid()] = child // InvalidOid = embedded bucket
}
}
fmt.Printf(" aChildren: %s\n", aChildren)
// -> "might be changed" subset of tracked keys
δtqkeys := SetKey{}
......@@ -527,6 +528,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
}
δtqkeys.Update(track.trackedKeys)
}
fmt.Printf(" δtqkeys: %s\n", δtqkeys)
// b -> {bChildren} : coverage ∩ "might be changed" tracked keys
bChildren := map[zodb.Oid]Node{}
......@@ -546,6 +548,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
}
}
}
fmt.Printf(" bChildren: %s\n", bChildren)
// allChildren = aChildren ∪ bChildren
allChildren := SetOid{}
......
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