-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
config: add configuration entry make TiDB version string configurable #13775
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13775 +/- ##
===========================================
Coverage 80.3003% 80.3003%
===========================================
Files 478 478
Lines 118784 118784
===========================================
Hits 95384 95384
Misses 15904 15904
Partials 7496 7496 |
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.
Please add some unit tests
/run-unit-test |
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
config/config.toml.example
Outdated
@@ -74,6 +74,9 @@ split-region-max-num = 1000 | |||
# In order to support "drop primary key" operation , this flag must be true and the table does not have the pkIsHandle flag. | |||
alter-primary-key = false | |||
|
|||
# serverVersion is used to show the version of tidb when log in. |
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.
Please add the comment to explain the version when server-version = ""
(Original TiDB version)
Notice that the result of |
/run-all-tests |
cherry pick to release-2.1 failed |
cherry pick to release-3.0 failed |
What problem does this PR solve?
It can improve the hard-coding of
serverVersion
property.What is changed and how it works?
add the
serverVersion
inconfig/config.go
andconfig/config.toml.example
Check List
Tests
Code changes
Release note
server-version
which make TiDB version string configurable, this PR closes config:improve the configurability of serverVersion property #13802