Commit 351cc95d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ca508686
......@@ -89,7 +89,7 @@ type ΔTail struct {
// ΔRoots describes which BTrees were change in one revision.
type ΔRoots struct {
Rev zodb.Tid
Changev []Tree // root XXX -> Oid? XXX -> SetTree?
Changev []*Tree // root XXX -> Oid? XXX -> SetTree?
}
// ΔTreeTail represent tail of revisional changes to one BTree.
......@@ -175,7 +175,7 @@ func (δb *ΔTail) Track(path []Node) { // XXX Tree|Bucket; path[0] = root
// only those keys, that correspond to tracked subset of δZ.
//
// XXX returned [](root, []key) -> move to separate SliceByRev to get diff?
func (btail *ΔTail) Update(δZ *zodb.EventCommit) (δB ΔRevEntry) {
func (btail *ΔTail) Update(δZ *zodb.EventCommit) (δB ΔRoots) {
btail.δZtail.Append(δZ.Tid, δZ.Changev)
// {} root -> []oid changed under that root
......@@ -197,7 +197,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) (δB ΔRevEntry) {
// XXX stub to get file.size invalidation working
for root := range δZByRoot {
δB.Changev = append(δB.Changev, ΔTree{root, nil})
δB.Changev = append(δB.Changev, root)
}
return δB
......
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