Commit d7830dbf authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7b0f8038
......@@ -176,8 +176,8 @@ type ΔBtail struct {
// tracked objects that are not yet taken into account in current δBtail
trackNew SetOid
// tracked keys that are not in current version of the tree.
tkdel SetKey
// // tracked keys that are not in current version of the tree.
// tkdel SetKey
// tracked nodes index: node -> parent + keys tracked under this node
......@@ -239,7 +239,7 @@ func NewΔBtail(at0 zodb.Tid, db *zodb.DB) *ΔBtail {
byRoot: make(map[zodb.Oid]*ΔTtail),
// trackIdx: make(map[zodb.Oid]SetOid),
trackIdx: map[zodb.Oid]nodeTrack{},
tkdel: SetKey{},
// tkdel: SetKey{},
db: db,
}
}
......@@ -331,6 +331,7 @@ func (δBtail *ΔBtail) Track(ctx context.Context, key Key, keyPresent bool, pat
δBtail.byRoot[root] = newΔTtail()
}
/*
if !keyPresent {
δBtail.tkdel.Add(key)
} else {
......@@ -338,6 +339,7 @@ func (δBtail *ΔBtail) Track(ctx context.Context, key Key, keyPresent bool, pat
panicf("[%v] was previously requested to be tracked as ø", key)
}
}
*/
// XXX update diff XXX here? or as separate step?
// XXX update lastRevOf
......
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