Skip to content

Commit

Permalink
ddl: set request source for cop requests that are used in adding index (
Browse files Browse the repository at this point in the history
#41401)

close #41400
  • Loading branch information
tangenta authored Feb 14, 2023
1 parent 41c1250 commit 95ceffd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ddl/index_cop.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ func (c *copContext) buildTableScan(ctx context.Context, startTS uint64, start,
SetFromInfoSchema(c.sessCtx.GetDomainInfoSchema()).
SetConcurrency(1).
Build()
kvReq.RequestSource.RequestSourceInternal = true
kvReq.RequestSource.RequestSourceType = getDDLRequestSource(model.ActionAddIndex)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 95ceffd

Please sign in to comment.