mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Address PR feedback: add comment explaining that we don't expect one case to happen often
This commit is contained in:
parent
1299d98c46
commit
f71a97b460
|
@ -687,6 +687,8 @@ func NewCompactingChunkSeriesMerger(mergeFunc VerticalSeriesMergeFunc) VerticalC
|
|||
// duplicated
|
||||
// - it does not check if overlapping chunks have samples that swap back and forth between
|
||||
// different encodings over time, and so may underestimate the resulting number of chunks
|
||||
// (we don't expect this to happen often though, as switching from float samples to histograms
|
||||
// involves changing the instrumentation)
|
||||
func estimateCompactedChunkCount(series []ChunkSeries) int {
|
||||
h := make(chunkIteratorHeap, 0, len(series))
|
||||
|
||||
|
|
Loading…
Reference in a new issue