From d9bd68f142a97eac3a03b403c6d8cf7ac88b0f6d Mon Sep 17 00:00:00 2001 From: Nicolas Takashi Date: Fri, 20 Dec 2024 23:43:00 +0000 Subject: [PATCH] [CHORE] deleting blocks on startup Signed-off-by: Nicolas Takashi --- tsdb/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/db.go b/tsdb/db.go index 615ab8fea8..b145cd72dd 100644 --- a/tsdb/db.go +++ b/tsdb/db.go @@ -1771,7 +1771,7 @@ func beyondStartupTimeRetention(db *DB, blocks []*Block) (deletable map[ulid.ULI deletable = make(map[ulid.ULID]struct{}) for _, block := range blocks { - if block.Meta().MaxTime >= int64(db.opts.StartupMinRetentionTime) { + if block.Meta().MaxTime >= db.opts.StartupMinRetentionTime { for _, b := range blocks { deletable[b.meta.ULID] = struct{}{} }