mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
app/vmselect/promql: properly make copies of EvalConfig
This commit is contained in:
parent
7a3a9421f3
commit
2d33230793
1 changed files with 4 additions and 4 deletions
|
@ -279,8 +279,8 @@ func evalExpr(ec *EvalConfig, e metricsql.Expr) ([]*timeseries, error) {
|
|||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
ecCopy := *ec
|
||||
tss, err := evalExpr(&ecCopy, be.Left)
|
||||
ecCopy := newEvalConfig(ec)
|
||||
tss, err := evalExpr(ecCopy, be.Left)
|
||||
mu.Lock()
|
||||
if err != nil {
|
||||
if errGlobal == nil {
|
||||
|
@ -293,8 +293,8 @@ func evalExpr(ec *EvalConfig, e metricsql.Expr) ([]*timeseries, error) {
|
|||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
ecCopy := *ec
|
||||
tss, err := evalExpr(&ecCopy, be.Right)
|
||||
ecCopy := newEvalConfig(ec)
|
||||
tss, err := evalExpr(ecCopy, be.Right)
|
||||
mu.Lock()
|
||||
if err != nil {
|
||||
if errGlobal == nil {
|
||||
|
|
Loading…
Reference in a new issue