mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-09 08:32:26 -04:00
Unexport sortedStaleSeriesRefsNoOOOData
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
This commit is contained in:
parent
58898e8031
commit
959bc1c90e
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue