From 0ce2985b9d1636990a2e52f0ad2740ecd807de9e Mon Sep 17 00:00:00 2001 From: tangenta Date: Tue, 14 Feb 2023 17:25:04 +0800 Subject: [PATCH] ddl: set request source for cop requests that are used in adding index --- ddl/index_cop.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ddl/index_cop.go b/ddl/index_cop.go index fab097727139b..da9d4e397a6cb 100644 --- a/ddl/index_cop.go +++ b/ddl/index_cop.go @@ -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 }