-
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
*: cleanup sysvar API usage #36640
*: cleanup sysvar API usage #36640
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
This incorporates the previous PR #35088 - since it is required to be fixed. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/7eec4f8568e71be2adc01ab71331425ab2329c03 |
/run-check_dev_2 |
@CbcWestwolf: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 9fe19ec
|
* upstream/master: ddl/schematracker: fix SetDDL will cause data race (pingcap#36768) planner: check virtual column for tiflash (pingcap#36771) *: replace defer clean with t.Cleanup (pingcap#36722) ddl: fix inaccurate row_count for `admin show ddl jobs` (pingcap#36716) config, sysvar: add config `instance.enable_ddl` and sysvar `tidb_enable_ddl` (pingcap#35425) *: enable part revive for all code (pingcap#36703)
/run-check_dev_2 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 7eec4f8
|
What problem does this PR solve?
Issue Number: close #36639
Problem Summary:
Currently, the sysvar API has some confusing usage. This simplifies/unifies the exported API.
What is changed and how it works?
See #36639 for an explanation.
Unfortunately because of backward compatibility, SetSystemVar is split into SetSystemVar (with validation) + SetSystemVarWithoutValidation. This will need to be cleaned up in a future PR (this change is already large enough).
Check List
Tests
Covered by existing tests, which are fixed here.
Side effects
Internal API change, not suitable for cherry pick.
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.