diff --git a/pkg/workload/tpcc/ddls.go b/pkg/workload/tpcc/ddls.go index a9f8fdc3ce3f..02e6cf71d77e 100644 --- a/pkg/workload/tpcc/ddls.go +++ b/pkg/workload/tpcc/ddls.go @@ -226,6 +226,7 @@ func scatterRanges(db *gosql.DB) error { var g errgroup.Group for _, table := range tables { + table := table g.Go(func() error { sql := fmt.Sprintf(`ALTER TABLE %s SCATTER`, table) if _, err := db.Exec(sql); err != nil {