prometheus/tsdb/agent
Bryan Boreham 0ab9553611
tsdb: drop deleted series from the WAL sooner (#12297)
`head.deleted` holds the WAL segment in use at the time each series was
removed from the head. At the end of `truncateWAL()` we will delete
all segments up to `last`, so we can drop any series that were last seen
in a segment at or before that point.

(same change in Prometheus Agent too)

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-05-01 16:43:15 +01:00
..
db.go tsdb: drop deleted series from the WAL sooner (#12297) 2023-05-01 16:43:15 +01:00
db_test.go enable gocritic, unconvert and unused linters 2023-04-13 19:20:22 +00:00
series.go
series_test.go