Skip to content

MDEV-38202: add init_rpl_role in SHOW VARIABLES#4904

Open
Mahmoud-kh1 wants to merge 1 commit intoMariaDB:mainfrom
Mahmoud-kh1:init_rpl_role
Open

MDEV-38202: add init_rpl_role in SHOW VARIABLES#4904
Mahmoud-kh1 wants to merge 1 commit intoMariaDB:mainfrom
Mahmoud-kh1:init_rpl_role

Conversation

@Mahmoud-kh1
Copy link
Copy Markdown

@Mahmoud-kh1 Mahmoud-kh1 commented Apr 4, 2026

This PR adds a new feature to see the server’s initial replication role.

I done this by introducing a new global system variable and make it catch the value of rpl_status at the startup and never changed by making it read-only.

Reason
Previously, init_rpl_role could be set in the cnf file but was not visible in SHOW VARIABLES which will be helpful for investigating issues as it will allow us to see with which value mariadb was started.

Tests :
Added basic tests to verify that init_rpl_role is correctly set at startup and displayed properly.

@Mahmoud-kh1 Mahmoud-kh1 force-pushed the init_rpl_role branch 5 times, most recently from bcb64ce to f6f6a30 Compare April 4, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant