[CHORE] deleting blocks on startup

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
This commit is contained in:
Nicolas Takashi 2024-12-20 23:43:00 +00:00
parent b7cf351e06
commit d9bd68f142
No known key found for this signature in database
GPG key ID: 65BE5B80BBC7A707

View file

@ -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{}{}
}