Commit 35ce1704 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 24b68c60
......@@ -260,14 +260,14 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
// start tracking zfile[-∞,∞) from the beginning
// this should make ΔFtail to see all zfile changes
// ( later retrack should be called after new epoch to track zfile[-∞,∞) again )
retrack := func() {
// ( later retrackAll should be called after new epoch to track zfile[-∞,∞) again )
retrackAll := func() {
for blk := range blkTab {
_, path, zblk, _, err := zfile.LoadBlk(ctx, blk); X(err)
δFtail.Track(zfile, blk, path, zblk)
}
}
retrack()
retrackAll()
i := 1 // matches t1
......@@ -459,7 +459,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
// track whole zfile again if new epoch was started
if newEpoch {
retrack()
retrackAll()
}
// verify δFtail.trackSetZBlk
......@@ -623,7 +623,6 @@ func TestΔFtailSliceUntrackedUniform(t_ *testing.T) {
zconn, err := t.DB.Open(ctx, &zodb.ConnOptions{At: t.Head().At}); X(err)
zfile, _ := t.XLoadZFile(ctx, zconn)
// XXX dup
xtrackBlk := func(blk int64) {
_, path, zblk, _, err := zfile.LoadBlk(ctx, blk); X(err)
δFtail.Track(zfile, blk, path, zblk)
......
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