Commit 89d73206 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 786dd336
...@@ -517,6 +517,8 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) { ...@@ -517,6 +517,8 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
// //
// the caller must not modify returned slice. // the caller must not modify returned slice.
// //
// XXX only tracked blocks are guaranteed to be present.
//
// Note: contrary to regular go slicing, low is exclusive while high is inclusive. // Note: contrary to regular go slicing, low is exclusive while high is inclusive.
func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*readonly*/[]*ΔFile { func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*readonly*/[]*ΔFile {
fmt.Printf("\nslice f<%s> (@%s,@%s]\n", zfile.POid(), lo, hi) fmt.Printf("\nslice f<%s> (@%s,@%s]\n", zfile.POid(), lo, hi)
...@@ -659,7 +661,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado ...@@ -659,7 +661,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
if δzblk.New != xbtree.VDEL { if δzblk.New != xbtree.VDEL {
inblk, ok := Zinblk[δzblk.New] inblk, ok := Zinblk[δzblk.New]
if ok { if ok {
inblk.Del(blk) inblk.Del(blk) // FIXME have to recheck vδZ for later entries of δzblk.New
} }
} }
if δzblk.Old != xbtree.VDEL { if δzblk.Old != xbtree.VDEL {
......
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