mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-06 08:02:17 +01:00
app/vmselect/promql: properly make copies of EvalConfig
This commit is contained in:
parent
5973fd4067
commit
54d2f67924
@ -295,8 +295,8 @@ func evalExpr(ec *EvalConfig, e metricsql.Expr) ([]*timeseries, error) {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
ecCopy := *ec
|
ecCopy := newEvalConfig(ec)
|
||||||
tss, err := evalExpr(&ecCopy, be.Left)
|
tss, err := evalExpr(ecCopy, be.Left)
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errGlobal == nil {
|
if errGlobal == nil {
|
||||||
@ -309,8 +309,8 @@ func evalExpr(ec *EvalConfig, e metricsql.Expr) ([]*timeseries, error) {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
ecCopy := *ec
|
ecCopy := newEvalConfig(ec)
|
||||||
tss, err := evalExpr(&ecCopy, be.Right)
|
tss, err := evalExpr(ecCopy, be.Right)
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errGlobal == nil {
|
if errGlobal == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user