Unexport sortedStaleSeriesRefsNoOOOData

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
This commit is contained in:
Oleg Zaytsev 2026-05-20 08:07:38 +00:00
parent 58898e8031
commit 959bc1c90e
No known key found for this signature in database
GPG key ID: 7E9FE9FD48F512EF
2 changed files with 3 additions and 3 deletions

View file

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

View file

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