Skip to content

Commit bc6fced

Browse files
mans0954StevenYCChou
authored andcommitted
Fix directory path for segment reader. (#169)
Directory need to be changed because we updated dependency in #143, in which there is breaking change on tsdb.LastCheckpoint() API.
1 parent cf645f3 commit bc6fced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tail/tail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func Tail(ctx context.Context, dir string) (*Tailer, error) {
6262
}
6363
// Open the entire checkpoint first. It has to be consumed before
6464
// the tailer proceeds to any segments.
65-
t.cur, err = wal.NewSegmentsReader(filepath.Join(dir, cpdir))
65+
t.cur, err = wal.NewSegmentsReader(cpdir)
6666
if err != nil {
6767
return nil, errors.Wrap(err, "open checkpoint")
6868
}

0 commit comments

Comments
 (0)