From 95ceffdc42c6d09def34c0dbf88632f331bb365b Mon Sep 17 00:00:00 2001 From: tangenta Date: Tue, 14 Feb 2023 19:06:10 +0800 Subject: [PATCH] ddl: set request source for cop requests that are used in adding index (#41401) close pingcap/tidb#41400 --- 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 }