-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Refactor mysqlctld
flags to follow standardized naming
#18432
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
base: main
Are you sure you want to change the base?
Refactor mysqlctld
flags to follow standardized naming
#18432
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #18432 +/- ##
=======================================
Coverage 67.49% 67.49%
=======================================
Files 1607 1607
Lines 263518 263518
=======================================
+ Hits 177849 177850 +1
+ Misses 85669 85668 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fa43ec9
to
ae692e4
Compare
@@ -63,6 +63,7 @@ func (mysqlctl *MysqlctlProcess) InitDb() (err error) { | |||
args = append(args, "--") | |||
} | |||
|
|||
//TODO: Remove underscore(_) flags in v25, replace them with dashed(-) notation | |||
args = append(args, "--init_db_sql_file", mysqlctl.InitDBFile) |
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.
Is the reason we can't change this yet because we run this same code for upgrade / downgrade tests from this version? Or do we then run the code from the older version for this test setup too?
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.
This is a pretty common pattern in the code, I haven't looked at these particular tests. Quite a few in #18280 as well, etc.
I want to check and see if we can bump these or have some sort of logic, it's a smell that we have all of these TODOs imo.
It might be worth doing in a follow-up PR, so that we can get these merged before release?
Signed-off-by: mounicasruthi <[email protected]>
8eb1aba
to
194023c
Compare
Signed-off-by: Nick Van Wiggeren <[email protected]>
194023c
to
2846e1b
Compare
Description
This PR is a part of an ongoing change to support the transition from underscores (
_
) to dashes (-
) in flag naming conventions. This PR refactors some flags specific tomysqlctld
binary.Flags Updated in This PR:
--init-db-sql-file
--socket-file
--wait-time
Flag Count Before vs After:
_
-
# of migrated flags: 5
Related Issue(s)
#17880
Checklist