-
Notifications
You must be signed in to change notification settings - Fork 681
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
system-variables: Add units wherever possible #6622
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. |
Note that I used the terminology "Threads" when they are really green threads (goroutines). I considered other options like "workers", but arrived at threads because I think this is easiest for users to understand. |
@@ -342,6 +345,7 @@ This variable is an alias for `last_insert_id`. | |||
- Scope: SESSION | GLOBAL | |||
- Default value: `18446744073709551615` | |||
- Range: `[0, 18446744073709551615]` | |||
- Unit: Rows |
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.
I think we should remove the "New in v4..." labels in the master branch. But that's outside of the scope of this PR.
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.
See #4549
I agree with you. It reduces the readability.
@@ -897,6 +911,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified | |||
- Scope: GLOBAL | |||
- Default value: `-1` | |||
- Range: `[1, 128]` |
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.
- Range: `[1, 128]` | |
- Range: `-1, [1, 128]` |
Some other variables have the same issue.
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.
I will have to think about this one. The value -1
is "special" in that it is reserved for the autovalue, which is kind of like NULL
or infinity: it doesn't fit neatly in a range.
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.
Lets change this in a future PR. I would like to add some docs on what the auto value is, and then have a separate line for: Permits Auto value: Yes.
Co-authored-by: Daniël van Eeden <[email protected]>
Co-authored-by: Daniël van Eeden <[email protected]>
Co-authored-by: Daniël van Eeden <[email protected]>
Co-authored-by: Daniël van Eeden <[email protected]>
Co-authored-by: Daniël van Eeden <[email protected]>
Co-authored-by: Daniël van Eeden <[email protected]>
@TomShawn If we can merge this first, I will create a followup PR to change the ranges. pingcap/tidb#28842 merged which adjusts a lot of the previous values. |
/verify |
Thanks. I have approved it. You can merge it and create the follow-up PR. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: b73640f
|
What is changed, added or deleted? (Required)
This adds units wherever possible, and removes it from the body description if redundant.
This helps improve readability and slightly reduce risk of misconfiguration.
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions.
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?