Skip to content

Commit

Permalink
Merge pull request #56979 from lucy-zhang/backport20.1-56942
Browse files Browse the repository at this point in the history
release-20.1: workload/tpcc: fix race condition in scattering tables
  • Loading branch information
thoszhang authored Nov 21, 2020
2 parents fb3e12f + c9f0043 commit e384e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workload/tpcc/ddls.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ func scatterRanges(db *gosql.DB) error {

var g errgroup.Group
for _, table := range tables {
sql := fmt.Sprintf(`ALTER TABLE %s SCATTER`, table)
g.Go(func() error {
sql := fmt.Sprintf(`ALTER TABLE %s SCATTER`, table)
if _, err := db.Exec(sql); err != nil {
return errors.Wrapf(err, "Couldn't exec %q", sql)
}
Expand Down

0 comments on commit e384e65

Please sign in to comment.