Skip to content
/ server Public

MDEV-37842 Fix CHANGE_MASTER_TO warning message#4702

Open
gengtianuiowa wants to merge 1 commit intoMariaDB:10.11from
gengtianuiowa:fix_change_master_to
Open

MDEV-37842 Fix CHANGE_MASTER_TO warning message#4702
gengtianuiowa wants to merge 1 commit intoMariaDB:10.11from
gengtianuiowa:fix_change_master_to

Conversation

@gengtianuiowa
Copy link
Contributor

Description

When master_use_gtid is set to no in the master database and the user runs CHANGE MASTER TO master_use_gtid= NO;, the server will print following warning:

Note    4190    CHANGE MASTER TO is implicitly changing the value of 'Using_Gtid' from 'No' to 'No'

This is because the code only checks if the new value is "NO", regardless if the original value is also no.

Change the if statement to only print the message when the original value is not "No".

How can this PR be tested?

Execute the rpl.rpl_change_master_use_gtid_no_warning test in mysql-test-run. This commit adds a test in rpl_change_master_use_gtid_no_warning.test.

Basing the PR against the correct MariaDB version

  • This is a new feature and the PR is based against the latest MariaDB development branch

Backward compatibility

This is a warning message fix. It is compatible with previous versions.

Copyright

All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.

When `master_use_gtid` is set to no in the master database and the user
runs `CHANGE MASTER TO master_use_gtid= NO;`, the server will print
following warning:

```
Note    4190    CHANGE MASTER TO is implicitly changing the value of 'Using_Gtid' from 'No' to 'No'
```

This is because the code only checks if the new value is "NO",
regardless if the original value is also no.

Change the if statement to only print the message when the original
value is not "No".
@CLAassistant
Copy link

CLAassistant commented Feb 27, 2026

CLA assistant check
All committers have signed the CLA.

@gengtianuiowa gengtianuiowa changed the base branch from main to 10.11 February 27, 2026 00:13
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Feb 27, 2026
Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

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

There's already work going on for this MDEV. See PR#4678. Please do not duplicate.
I suggest closing this PR and finding something else that is not already in progress.

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

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants