From 2f885d8e57e1db741c80dd3263131165391fdfc2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 14 Nov 2023 03:34:09 +0100 Subject: [PATCH] app/vmselect/promql: typo fixes after 7cf7740d183d66354f3a3b941e53656c7be3ae0d --- app/vmselect/promql/eval.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmselect/promql/eval.go b/app/vmselect/promql/eval.go index 0a4349f623..4be1931c70 100644 --- a/app/vmselect/promql/eval.go +++ b/app/vmselect/promql/eval.go @@ -1494,10 +1494,10 @@ func getMinMaxInstantValues(tssCached, tssStart, tssEnd []*timeseries, f func(a, mStart := make(map[string]*timeseries, len(tssStart)) for _, ts := range tssStart { bb.B = marshalMetricNameSorted(bb.B[:0], &ts.MetricName) - if _, ok := m[string(bb.B)]; ok { + if _, ok := mStart[string(bb.B)]; ok { logger.Panicf("BUG: duplicate series found: %s", &ts.MetricName) } - m[string(bb.B)] = ts + mStart[string(bb.B)] = ts tsCached := m[string(bb.B)] if tsCached != nil && !math.IsNaN(tsCached.Values[0]) { if !math.IsNaN(ts.Values[0]) {