Skip to content
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

Merged
merged 4 commits into from
Sep 4, 2018
Merged

Conversation

winkyao
Copy link
Contributor

@winkyao winkyao commented Aug 31, 2018

What problem does this PR solve?

Cherry-pick from #6441

…orkers count (#6441)

* *: add session var 'tidb_ddl_reorg_worker_cnt' to control ddl reorg workers count
SetSessionSystemVar(v, TiDBDDLReorgWorkerCount, types.NewIntDatum(-1))
c.Assert(GetDDLReorgWorkerCounter(), Equals, int32(DefTiDBDDLReorgWorkerCount))

SetSessionSystemVar(v, TiDBDDLReorgWorkerCount, types.NewIntDatum(int64(maxDDLReorgWorkerCount)+1))
Copy link
Contributor

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).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zimulala zimulala added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2018
Copy link
Contributor

@ciscoxll ciscoxll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@winkyao
Copy link
Contributor Author

winkyao commented Sep 4, 2018

/run-all-tests tikv=release-2.0 tidb-test=release-2.0

@winkyao winkyao merged commit 131fe7e into pingcap:release-2.0 Sep 4, 2018
@winkyao winkyao deleted the cherry-pick-2.0-1 branch September 4, 2018 08:22
@winkyao winkyao added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants