From c572bb8753c8f3b9cef3618fb929d92931d311f6 Mon Sep 17 00:00:00 2001 From: Christopher Hoskin Date: Tue, 3 Sep 2019 12:10:11 +0100 Subject: [PATCH] Revert change to segment reader path --- tail/tail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tail/tail.go b/tail/tail.go index 3da7626f..622d5c54 100644 --- a/tail/tail.go +++ b/tail/tail.go @@ -62,7 +62,7 @@ func Tail(ctx context.Context, dir string) (*Tailer, error) { } // Open the entire checkpoint first. It has to be consumed before // the tailer proceeds to any segments. - t.cur, err = wal.NewSegmentsReader(filepath.Join(dir, cpdir)) + t.cur, err = wal.NewSegmentsReader(cpdir) if err != nil { return nil, errors.Wrap(err, "open checkpoint") }