Commit b71c111b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9f354dc7
......@@ -227,6 +227,7 @@ const (
// XXX TrackMinKey (we don't need it in WCFS)
)
// XXX kill keyPresent
func (δBtail *ΔBtail) Track(key Key, keyPresent bool, path []Node, flags TrackFlags) { // XXX Tree|Bucket; path[0] = root
l := len(path)
if l == 0 {
......@@ -243,7 +244,7 @@ func (δBtail *ΔBtail) Track(key Key, keyPresent bool, path []Node, flags Track
oidv := []Oid{}
for _, node := range path { oidv = append(oidv, node.POid()) }
fmt.Printf("Track %v\n", oidv)
fmt.Printf("Track %v %v\n", key, oidv)
parent := zodb.InvalidOid
var track nodeTrack
......@@ -269,11 +270,13 @@ func (δBtail *ΔBtail) Track(key Key, keyPresent bool, path []Node, flags Track
}
// tracked += all keys of leaf bucket for every node up to the root
fmt.Printf(" oldTrack: %v leafBucket: %v\n", oldTrack, leafBucket)
if !oldTrack && leafBucket != nil {
bkeys := SetKey{}
for _, __ := range leafBucket.Entryv() {
for _, __ := range leafBucket.Entryv() { // XXX activate
bkeys.Add(__.Key())
}
fmt.Printf(" bkeys: %s\n", bkeys)
for {
track.trackedKeys.Update(bkeys)
......
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