-
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
*: rename tidb_back_off_weight #11655
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #11655 +/- ##
================================================
- Coverage 81.4101% 81.2576% -0.1526%
================================================
Files 426 426
Lines 92513 92075 -438
================================================
- Hits 75315 74818 -497
- Misses 11826 11876 +50
- Partials 5372 5381 +9 |
LGTM |
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
session/bootstrap.go
Outdated
@@ -853,6 +858,10 @@ func upgradeToVer34(s Session) { | |||
doReentrantDDL(s, CreateOptRuleBlacklist) | |||
} | |||
|
|||
func upgradeToVer35(s Session) { | |||
mustExecute(s, "UPDATE HIGH_PRIORITY mysql.GLOBAL_VARIABLES SET VARIABLE_NAME='tidb_backoff_weight' WHERE VARIABLE_NAME='tidb_back_off_weight'") |
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.
Do we need to update other variables? If we need to, I think we'd better do it in the same PR. Then we can reduce versions.
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.
No other name needs to be changed.
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
/run-all-tests |
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 |
@jackysp merge failed. |
/run-unit-test |
cherry pick to release-3.0 failed |
Signed-off-by: Shuaipeng Yu jackysp@gmail.com
What problem does this PR solve?
The
back_off
intidb_back_off_weight
is not consistent with the old variabletidb_backoff_lock_fast
, which makes the user confused.What is changed and how it works?
It is a new variable, may not be used widely by users, so change it to
tidb_backoff_weight
.Check List
Tests
Code changes
Side effects
Related changes