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
  • Loading branch information
tangenta committed Feb 14, 2023
1 parent 84871df commit 0ce2985
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 0ce2985

Please sign in to comment.