From 89ee5aaed4f9330c0513aea0982cd5f5dd7d71e7 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 13 Feb 2019 19:44:19 -0800 Subject: [PATCH] clarify which segments are deleted when we find a corrupted segment (#522) Signed-off-by: Callum Styan --- wal/wal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wal/wal.go b/wal/wal.go index fd90eb90e..1ab633460 100644 --- a/wal/wal.go +++ b/wal/wal.go @@ -296,7 +296,7 @@ func (w *WAL) Repair(origErr error) error { if err != nil { return errors.Wrap(err, "list segments") } - level.Warn(w.logger).Log("msg", "deleting all segments behind corruption", "segment", cerr.Segment) + level.Warn(w.logger).Log("msg", "deleting all segments newer than corrupted segment", "segment", cerr.Segment) for _, s := range segs { if w.segment.i == s.index {