Skip to content

Commit

Permalink
fix(execute): metadata in flux statistics needs to be initialized (#4801
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jsternberg authored May 27, 2022
1 parent 951b298 commit e107c96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions execute/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/influxdata/flux/codes"
"github.com/influxdata/flux/internal/errors"
"github.com/influxdata/flux/memory"
"github.com/influxdata/flux/metadata"
"github.com/influxdata/flux/plan"
"github.com/opentracing/opentracing-go"
"go.uber.org/zap"
Expand Down Expand Up @@ -434,6 +435,7 @@ func (es *executionState) do() {
fn(&stats)
}

stats.Metadata = make(metadata.Metadata)
for _, src := range es.sources {
wg.Add(1)
go func(src Source) {
Expand Down

0 comments on commit e107c96

Please sign in to comment.