Repository navigation
MDEV-29315 Add non-ambiguous alias for 'ALL' in RESET SLAVE ALL - #6131
Open
mehul-raj5 wants to merge 1 commit into
Open
mehul-raj5 wants to merge 1 commit into
mehul-raj5 wants to merge 1 commit into
Conversation
ALL in RESET SLAVE ['connection_name'] ALL resets a single replica connection, but reads as if it applied to all of them, as ALL does in SHOW ALL SLAVES STATUS. Add FULL as an alias for ALL. It sets the same flag, so the behaviour is identical, and ALL keeps working. multi_source.reset_slave fails without this change.
gkodinov
approved these changes
Nov 12, 2026
gkodinov
left a comment
Member
There was a problem hiding this comment.
Thank you for your contribution! This is a preliminary review.
LGTM. Please stand by for the final review.
ParadoxV5
reviewed
Nov 12, 2026
Comment on lines
15911
to
+15912
| | ALL { Lex->reset_slave_info.all= true; } | ||
| | FULL { Lex->reset_slave_info.all= true; } |
Contributor
There was a problem hiding this comment.
Is
Suggested change
| | ALL { Lex->reset_slave_info.all= true; } | |
| | FULL { Lex->reset_slave_info.all= true; } | |
| | (ALL|FULL) { Lex->reset_slave_info.all= true; } |
valid syntax?
Author
There was a problem hiding this comment.
Thanks for the suggestion! but BISON doesn't accept ( | ) type grouping inside a rule, it will fail with an invalid character error because of ' ( '. The current syntax already handles this rule because both set the .all to be true so they behave the same.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The ALL in RESET SLAVE ['connection_name'] ALL resets a single replica connection, but it reads as if it applied to all replica connections, as ALL does in SHOW ALL SLAVES STATUS and START/STOP ALL SLAVES.
Add FULL as an alias for ALL in RESET SLAVE/REPLICA:
FULL sets the same flag as ALL, so the behaviour is identical: a named connection is removed, and the default connection has its connection settings cleared. ALL is kept for backward compatibility.
FULL is an existing keyword, so no new token is added and statement digests are unchanged.
Copyright
This contribution is made under the MariaDB Contributor Agreement (MCA).