mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
[CHORE] deleting blocks on startup
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
This commit is contained in:
parent
b7cf351e06
commit
d9bd68f142
|
@ -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{}{}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue