diff --git a/tsdb/db.go b/tsdb/db.go index 2dcd1a7a59..9da5136532 100644 --- a/tsdb/db.go +++ b/tsdb/db.go @@ -1684,7 +1684,7 @@ func (db *DB) CompactStaleHead() (err error) { // We get the stale series reference first because this list can change during the compaction below. // It is more efficient and easier to provide an index interface for the stale series when we have a static list. - staleSeriesRefs, err := db.head.SortedStaleSeriesRefsNoOOOData(context.Background()) + staleSeriesRefs, err := db.head.sortedStaleSeriesRefsNoOOOData(context.Background()) if err != nil { return err } diff --git a/tsdb/head_read.go b/tsdb/head_read.go index 5806e995b3..61217f3cb0 100644 --- a/tsdb/head_read.go +++ b/tsdb/head_read.go @@ -334,8 +334,8 @@ func (h *headStaleIndexReader) SortedPostings(p index.Postings) index.Postings { } } -// SortedStaleSeriesRefsNoOOOData returns all the series refs of the stale series that do not have any out-of-order data. -func (h *Head) SortedStaleSeriesRefsNoOOOData(ctx context.Context) (staleSeriesRefs, error) { +// sortedStaleSeriesRefsNoOOOData returns all the series refs of the stale series that do not have any out-of-order data. +func (h *Head) sortedStaleSeriesRefsNoOOOData(ctx context.Context) (staleSeriesRefs, error) { k, v := index.AllPostingsKey() return h.filterStaleSeriesAndSortPostings(h.postings.Postings(ctx, k, v)) }