Commit d7830dbf authored by Kirill Smelkov's avatar Kirill Smelkov

.

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