app/vmselect/promql: typo fix, which could lead to panic during range query execution

The panic is:

  BUG: unexpected values after merging new values

This is a follow-up for 41a0fdaf39
This commit is contained in:
Aliaksandr Valialkin 2023-11-01 09:52:18 +01:00
parent 3e76c3bd50
commit 0189081490
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -1349,7 +1349,7 @@ func evalRollupFuncWithMetricExpr(qt *querytracer.Tracer, ec *EvalConfig, funcNa
ecCopy := copyEvalConfig(ec) ecCopy := copyEvalConfig(ec)
ecCopy.Start = start ecCopy.Start = start
pointsPerSeries := 1 + (ec.End-ec.Start)/ec.Step pointsPerSeries := 1 + (ec.End-ec.Start)/ec.Step
tss, err := evalRollupFuncNoCache(qt, ec, funcName, rf, expr, me, iafc, window, pointsPerSeries) tss, err := evalRollupFuncNoCache(qt, ecCopy, funcName, rf, expr, me, iafc, window, pointsPerSeries)
if err != nil { if err != nil {
err = &UserReadableError{ err = &UserReadableError{
Err: err, Err: err,