-
-
Notifications
You must be signed in to change notification settings - Fork 2k
MDEV-38202: make init_rpl_role visible at runtime #4904
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # | ||
| # MDEV-38202: add init_rpl_role in output of "show variables" | ||
| # | ||
| # It should show SLAVE as it is set in the .opt file. | ||
| SELECT @@GLOBAL.init_rpl_role; | ||
| @@GLOBAL.init_rpl_role | ||
| SLAVE | ||
| SHOW GLOBAL VARIABLES LIKE 'init_rpl_role'; | ||
| Variable_name Value | ||
| init_rpl_role SLAVE | ||
| # Verify that it's a global scope only. | ||
| SELECT @@SESSION.init_rpl_role; | ||
| ERROR HY000: Variable 'init_rpl_role' is a GLOBAL variable | ||
| # Verify it's read-only. | ||
| SET @@GLOBAL.init_rpl_role = 'MASTER'; | ||
| ERROR HY000: Variable 'init_rpl_role' is a read only variable | ||
| # End of 13.0 tests |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| --init-rpl-role=SLAVE |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add test-to-fails for not SESSION scope and Read-only as well. 💭(Why? Because they aren’t merely “alternative syntaxes”… I wonder if all these
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test LGTM except… nits. These double-blankline separators, upper/lower case inconsistencies, and sentences without capitalization and full stops itch me.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok , I will clean it now. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --source include/not_embedded.inc | ||
| --echo # | ||
| --echo # MDEV-38202: add init_rpl_role in output of "show variables" | ||
| --echo # | ||
|
|
||
| --echo # It should show SLAVE as it is set in the .opt file. | ||
| SELECT @@GLOBAL.init_rpl_role; | ||
| SHOW GLOBAL VARIABLES LIKE 'init_rpl_role'; | ||
|
|
||
| --echo # Verify that it's a global scope only. | ||
| --error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
| SELECT @@SESSION.init_rpl_role; | ||
|
|
||
| --echo # Verify it's read-only. | ||
| --error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
| SET @@GLOBAL.init_rpl_role = 'MASTER'; | ||
|
|
||
| --echo # End of 13.0 tests |
Uh oh!
There was an error while loading. Please reload this page.