Skip to content

MDEV-40996 Support --sync_with_master 0, $variable in mysqltest - #5619

Open
ParadoxV5 wants to merge 1 commit into
10.11from
px5.sync_with_master-var
Open

MDEV-40996 Support --sync_with_master 0, $variable in mysqltest#5619
ParadoxV5 wants to merge 1 commit into
10.11from
px5.sync_with_master-var

Conversation

@ParadoxV5

@ParadoxV5 ParadoxV5 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

--sync_with_master uses get_string(), which has $variable support, but it only uses the read buffer, which is written with the unexpanded string and not the variable value.

@vuvova

vuvova commented Sep 1, 2026

Copy link
Copy Markdown
Member

@ParadoxV5 mtr/mariadb-test changes can (and should) go into the earliest version, 10.11. They don't affect the server or production use, and it's rather annoying to remember what mtr feature was added in what version and adjust tests when merging up. Better keep mtr/mariadb-test the same everywhere whenever possible

@vuvova
vuvova requested a review from KhaledR57 September 1, 2026 08:05

@KhaledR57 KhaledR57 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a test? nothing exercises this path today, which is why CI is green. Two more things: please put the MDEV number first on the PR title and commit, and target 10.11 per @vuvova's comment, thanks

Comment thread client/mysqltest.cc Outdated
@ParadoxV5
ParadoxV5 changed the base branch from 11.4 to 10.11 September 2, 2026 03:26
@ParadoxV5
ParadoxV5 force-pushed the px5.sync_with_master-var branch from 153ee96 to 8b8d062 Compare September 2, 2026 04:42
@ParadoxV5 ParadoxV5 changed the title MTR: Support --sync_with_master 0, $variable MDEV-40996 Support --sync_with_master 0, $variable in mysqltest Sep 2, 2026
@ParadoxV5 ParadoxV5 added the Rework pull requests that are currently being re-implemented by the MariaDB developers label Sep 2, 2026
`--sync_with_master` uses `get_string()`,
which has `$variable` support, but it only uses the read buffer,
which is written with the unexpanded string and not the variable value.

Reviewed-by: KhaledR57 <khaled57.dev@gmail.com>
@KhaledR57
KhaledR57 force-pushed the px5.sync_with_master-var branch from 8b8d062 to d557ea8 Compare September 2, 2026 20:44
@KhaledR57

Copy link
Copy Markdown
Contributor

verified under ASAN, the test fails without the patch and passes with it.

I amended two cosmetic things: declared str with the other locals at the top of the function, and realigned the continuation line under the open paren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Corporation Rework pull requests that are currently being re-implemented by the MariaDB developers

Development

Successfully merging this pull request may close these issues.

3 participants