mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Update package storage for new labels.Labels type
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
4b6a4d1425
commit
d6b97f631a
|
@ -699,7 +699,7 @@ func (c *compactChunkIterator) Next() bool {
|
||||||
// 1:1 duplicates, skip it.
|
// 1:1 duplicates, skip it.
|
||||||
} else {
|
} else {
|
||||||
// We operate on same series, so labels does not matter here.
|
// We operate on same series, so labels does not matter here.
|
||||||
overlapping = append(overlapping, newChunkToSeriesDecoder(nil, next))
|
overlapping = append(overlapping, newChunkToSeriesDecoder(labels.EmptyLabels(), next))
|
||||||
if next.MaxTime > oMaxTime {
|
if next.MaxTime > oMaxTime {
|
||||||
oMaxTime = next.MaxTime
|
oMaxTime = next.MaxTime
|
||||||
}
|
}
|
||||||
|
@ -716,7 +716,7 @@ func (c *compactChunkIterator) Next() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add last as it's not yet included in overlap. We operate on same series, so labels does not matter here.
|
// Add last as it's not yet included in overlap. We operate on same series, so labels does not matter here.
|
||||||
iter = NewSeriesToChunkEncoder(c.mergeFunc(append(overlapping, newChunkToSeriesDecoder(nil, c.curr))...)).Iterator(nil)
|
iter = NewSeriesToChunkEncoder(c.mergeFunc(append(overlapping, newChunkToSeriesDecoder(labels.EmptyLabels(), c.curr))...)).Iterator(nil)
|
||||||
if !iter.Next() {
|
if !iter.Next() {
|
||||||
if c.err = iter.Err(); c.err != nil {
|
if c.err = iter.Err(); c.err != nil {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue