-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: add session var 'tidb_ddl_reorg_worker_cnt' to control ddl reorg workers count (#6441) #7563
Conversation
…orkers count (#6441) * *: add session var 'tidb_ddl_reorg_worker_cnt' to control ddl reorg workers count
This reverts commit ed5f0ad.
SetSessionSystemVar(v, TiDBDDLReorgWorkerCount, types.NewIntDatum(-1)) | ||
c.Assert(GetDDLReorgWorkerCounter(), Equals, int32(DefTiDBDDLReorgWorkerCount)) | ||
|
||
SetSessionSystemVar(v, TiDBDDLReorgWorkerCount, types.NewIntDatum(int64(maxDDLReorgWorkerCount)+1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing here c.Assert(GetDDLReorgWorkerCounter(), Equals, maxDDLReorgWorkerCount)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/run-all-tests tikv=release-2.0 tidb-test=release-2.0 |
What problem does this PR solve?
Cherry-pick from #6441