Commit 2b918c95 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2a2db135
...@@ -221,12 +221,13 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) ΔB { ...@@ -221,12 +221,13 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) ΔB {
} }
} }
δB := ΔB{Rev: δZ.Tid, Change: make(map[*Tree]map[Key]Value)}
if len(δZByRoot) == 0 { if len(δZByRoot) == 0 {
return nil // tracked set not changed return δB // tracked set not changed
} }
// XXX stub to get file.size invalidation working // XXX stub to get file.size invalidation working
δB := ΔB{Rev: δZ.Tid, Change: make(map[*Tree]map[Key]Value)}
for root := range δZByRoot { for root := range δZByRoot {
δt, ok := δB.Change[root] δt, ok := δB.Change[root]
if !ok { if !ok {
......
...@@ -100,7 +100,7 @@ func (δFtail *ΔFTail) Update(δZ *zodb.EventCommit) ΔF { ...@@ -100,7 +100,7 @@ func (δFtail *ΔFTail) Update(δZ *zodb.EventCommit) ΔF {
δfile = make(SetI64) δfile = make(SetI64)
δF.Change[file] = δfile δF.Change[file] = δfile
} }
for blk /*, zblk*/ := range δt.KV { for blk /*, zblk*/ := range δt {
// FIXME stub - need to take both keys and zblk changes into account // FIXME stub - need to take both keys and zblk changes into account
// XXX document, and in particular how to include atTail // XXX document, and in particular how to include atTail
δfile.Add(blk) δfile.Add(blk)
......
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