mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Make sure that mint and maxt are not modified.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
This commit is contained in:
parent
44e9ae38b5
commit
29c73f05f2
4
block.go
4
block.go
|
@ -248,8 +248,8 @@ Outer:
|
|||
for _, chk := range chunks {
|
||||
if intervalOverlap(mint, maxt, chk.MinTime, chk.MaxTime) {
|
||||
// Delete only until the current vlaues and not beyond.
|
||||
mint, maxt = clampInterval(mint, maxt, chunks[0].MinTime, chunks[len(chunks)-1].MaxTime)
|
||||
stones[p.At()] = intervals{{mint, maxt}}
|
||||
tmin, tmax := clampInterval(mint, maxt, chunks[0].MinTime, chunks[len(chunks)-1].MaxTime)
|
||||
stones[p.At()] = intervals{{tmin, tmax}}
|
||||
continue Outer
|
||||
}
|
||||
}
|
||||
|
|
4
head.go
4
head.go
|
@ -243,8 +243,8 @@ Outer:
|
|||
}
|
||||
|
||||
// Delete only until the current values and not beyond.
|
||||
mint, maxt = clampInterval(mint, maxt, h.series[ref].chunks[0].minTime, h.series[ref].head().maxTime)
|
||||
stones = append(stones, Stone{ref, intervals{{mint, maxt}}})
|
||||
tmin, tmax := clampInterval(mint, maxt, h.series[ref].chunks[0].minTime, h.series[ref].head().maxTime)
|
||||
stones = append(stones, Stone{ref, intervals{{tmin, tmax}}})
|
||||
}
|
||||
|
||||
if p.Err() != nil {
|
||||
|
|
Loading…
Reference in a new issue