Skip to content

Commit

Permalink
ddl: remove useless code in adjustWorkerSize (#53644)
Browse files Browse the repository at this point in the history
ref #53388
  • Loading branch information
lcwangchao authored May 29, 2024
1 parent 87999d1 commit 2b68ccf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/ddl/backfilling_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ func (b *txnBackfillScheduler) adjustWorkerSize() error {
runner = newBackfillWorker(b.ctx, tmpIdxWorker)
worker = tmpIdxWorker
case typeUpdateColumnWorker:
// Setting InCreateOrAlterStmt tells the difference between SELECT casting and ALTER COLUMN casting.
sessCtx.GetSessionVars().StmtCtx.InCreateOrAlterStmt = true
sessCtx.GetSessionVars().StmtCtx.SetTypeFlags(
sessCtx.GetSessionVars().StmtCtx.TypeFlags().
WithIgnoreZeroDateErr(!reorgInfo.ReorgMeta.SQLMode.HasStrictMode()))
Expand Down

0 comments on commit 2b68ccf

Please sign in to comment.