From a5ac0bff1d1fe8a167fc9b982f692b39190090a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Wed, 14 Jan 2026 10:02:13 +0100 Subject: [PATCH] update ooo_head.go but only with TODOs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: György Krajcsovits --- tsdb/ooo_head.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tsdb/ooo_head.go b/tsdb/ooo_head.go index bbb0f10e77..f9746c4c61 100644 --- a/tsdb/ooo_head.go +++ b/tsdb/ooo_head.go @@ -40,7 +40,8 @@ func (o *OOOChunk) Insert(t int64, v float64, h *histogram.Histogram, fh *histog // try to append at the end first if the new timestamp is higher than the // last known timestamp. if len(o.samples) == 0 || t > o.samples[len(o.samples)-1].t { - o.samples = append(o.samples, sample{t, v, h, fh}) + // TODO(krajorama): pass ST. + o.samples = append(o.samples, sample{0, t, v, h, fh}) return true } @@ -49,7 +50,8 @@ func (o *OOOChunk) Insert(t int64, v float64, h *histogram.Histogram, fh *histog if i >= len(o.samples) { // none found. append it at the end - o.samples = append(o.samples, sample{t, v, h, fh}) + // TODO(krajorama): pass ST. + o.samples = append(o.samples, sample{0, t, v, h, fh}) return true } @@ -61,7 +63,8 @@ func (o *OOOChunk) Insert(t int64, v float64, h *histogram.Histogram, fh *histog // Expand length by 1 to make room. use a zero sample, we will overwrite it anyway. o.samples = append(o.samples, sample{}) copy(o.samples[i+1:], o.samples[i:]) - o.samples[i] = sample{t, v, h, fh} + // TODO(krajorama): pass ST. + o.samples[i] = sample{0, t, v, h, fh} return true }