MCPcopy
hub / github.com/prometheus/prometheus / Plan

Method Plan

tsdb/compact.go:58–58  ·  view source on GitHub ↗

Plan returns a set of directories that can be compacted concurrently. The directories can be overlapping. Results returned when compactions are in progress are undefined.

(dir string)

Source from the content-addressed store, hash-verified

56 // The directories can be overlapping.
57 // Results returned when compactions are in progress are undefined.
58 Plan(dir string) ([]string, error)
59
60 // Write persists one or more Blocks into a directory.
61 // No Block is written when resulting Block has 0 samples and returns an empty slice.

Callers 4

TestLeveledCompactorFunction · 0.65
compactBlocksMethod · 0.65
TestNewCompactorFuncFunction · 0.65

Implementers 3

mockCompactorFailingtsdb/db_test.go
mockCompactorFntsdb/db_test.go
LeveledCompactortsdb/compact.go

Calls

no outgoing calls

Tested by 3

TestLeveledCompactorFunction · 0.52
TestNewCompactorFuncFunction · 0.52