Skip to content

Commit

Permalink
ddl: fix gofail data race (#6904)
Browse files Browse the repository at this point in the history
  • Loading branch information
winkyao authored and coocood committed Jun 25, 2018
1 parent 3ac6d3a commit 41f8ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func (w *addIndexWorker) run(d *ddlCtx) {

log.Debug("[ddl-reorg] got backfill index task:#v", task)
// gofail: var mockAddIndexErr bool
//if mockAddIndexErr && !gofailMockAddindexErrOnceGuard && w.id == 0 {
//if w.id == 0 && mockAddIndexErr && !gofailMockAddindexErrOnceGuard {
// gofailMockAddindexErrOnceGuard = true
// result := &addIndexResult{addedCount: 0, nextHandle: 0, err: errors.Errorf("mock add index error")}
// w.resultCh <- result
Expand Down

0 comments on commit 41f8ac1

Please sign in to comment.