Commit 494b4715 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b7afe5f1
...@@ -92,6 +92,10 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry { ...@@ -92,6 +92,10 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry {
// //
// XXX -> merge into ZBigFile.LoadBlk? // XXX -> merge into ZBigFile.LoadBlk?
// XXX ZBigFile.LoadBlk(blk) -> blkdata, rev // XXX ZBigFile.LoadBlk(blk) -> blkdata, rev
//
// XXX no - cannot merge - f.LastBlkRev is used for both @head (where we have
// zblk.rev) and for @w.at, where we don't have zblk.rev because we was not
// handling load and just need to pin watcher with the result.
func (δf *ΔFTail) LastRevOf(file *BigFile, blk int64, at zodb.Tid) (_ zodb.Tid, exact bool) { func (δf *ΔFTail) LastRevOf(file *BigFile, blk int64, at zodb.Tid) (_ zodb.Tid, exact bool) {
// revision of when blktab[blk] entry changed last. // revision of when blktab[blk] entry changed last.
treeKeyRev, exact := δf.ΔTail.LastRevOf(file.zfile.blktab, blk, at) // XXX activate? treeKeyRev, exact := δf.ΔTail.LastRevOf(file.zfile.blktab, blk, at) // XXX activate?
......
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