Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15530

Variable replicate_rewrite_db cannot be found in "show global variables"

Details

    Description

      Hello,

      It's many time I asked myself but I never found answer about that, why we cannot find the variable : replicate_rewrite_db in "show global variables" or "show all slaves stauts" <- (should be there)

      MariaDB [(none)]> show global variables like '%replicate%';
      +----------------------------------+-----------+
      | Variable_name                    | Value     |
      +----------------------------------+-----------+
      | replicate_annotate_row_events    | ON        |
      | replicate_do_db                  |           |
      | replicate_do_table               |           |
      | replicate_events_marked_for_skip | REPLICATE |
      | replicate_ignore_db              |           |
      | replicate_ignore_table           |           |
      | replicate_wild_do_table          |           |
      | replicate_wild_ignore_table      |           |
      | wsrep_replicate_myisam           | OFF       |
      +----------------------------------+-----------+
      9 rows in set (0.005 sec)
      
      

      Attachments

        Issue Links

          Activity

            That's because it's not a variable, it's a command-line option only.
            https://mariadb.com/kb/en/library/replication-and-binary-log-server-system-variables/#replicate_rewrite_db

            Do you want it to be converted into a feature request for making it a variable?

            elenst Elena Stepanova added a comment - That's because it's not a variable, it's a command-line option only. https://mariadb.com/kb/en/library/replication-and-binary-log-server-system-variables/#replicate_rewrite_db Do you want it to be converted into a feature request for making it a variable?

            Hello Elena,

            Yes, can you add this to be converted into a feature request for making it a variable.

            without this you need reboot server each time, and it's not fair at all when you have many thread of replication.

            Aurelien_LEQUOY Aurélien LEQUOY added a comment - Hello Elena, Yes, can you add this to be converted into a feature request for making it a variable. without this you need reboot server each time, and it's not fair at all when you have many thread of replication.

            so it's will be add or not ?

            Aurelien_LEQUOY Aurélien LEQUOY added a comment - so it's will be add or not ?

            At the moment it's not planned for any specific release (see above, FixVersion is empty). But eventually it will be added.

            serg Sergei Golubchik added a comment - At the moment it's not planned for any specific release (see above, FixVersion is empty). But eventually it will be added.
            dixitdpatel Dixit Patel added a comment -

            Hi, I was trying to search through the code base to get a starting point for this fix. I was looking through mysql.cc inside client directory, but don't know if this is a good place to start. Any inputs ?
            I'm only getting started with Mariadb codebase so I'd appreciate any help.

            dixitdpatel Dixit Patel added a comment - Hi, I was trying to search through the code base to get a starting point for this fix. I was looking through mysql.cc inside client directory, but don't know if this is a good place to start. Any inputs ? I'm only getting started with Mariadb codebase so I'd appreciate any help.
            danblack Daniel Black added a comment -

            sql/mysqld.cc contains the command line options. variables are in sql/sys_vars.cc. Ignore the client directory - its programs like the mysql client, mysqldump etc. Most things you'll need are in sql/.

            danblack Daniel Black added a comment - sql/mysqld.cc contains the command line options. variables are in sql/sys_vars.cc. Ignore the client directory - its programs like the mysql client, mysqldump etc. Most things you'll need are in sql/.
            rodfsouza Rodrigo Souza added a comment -

            I wonder if there is somebody working on this feature request? If not, I'd like to tackle it.

            rodfsouza Rodrigo Souza added a comment - I wonder if there is somebody working on this feature request? If not, I'd like to tackle it.

            Nobody is working on it, as far as I can see. Feel free to do it.
            Thanks!

            serg Sergei Golubchik added a comment - Nobody is working on it, as far as I can see. Feel free to do it. Thanks!

            if any could work on it <3

            Aurelien_LEQUOY Aurélien LEQUOY added a comment - if any could work on it <3

            Hi anel!

            Thanks for the patch! I left review notes on Github.

            bnestere Brandon Nesterenko added a comment - Hi anel ! Thanks for the patch! I left review notes on Github.

            SHOW SLAVE STATUS currently (10.11<=) doesn't output replicate_rewrite_db.
            With this patch we should support also that replicate_rewrite_db can be shown in show slave status command output.

            anel Anel Husakovic added a comment - SHOW SLAVE STATUS currently (10.11<=) doesn't output replicate_rewrite_db . With this patch we should support also that replicate_rewrite_db can be shown in show slave status command output.

            76e4bb64d7 OK to push

            angelique.sklavounos Angelique Sklavounos (Inactive) added a comment - 76e4bb64d7 OK to push

            Pushed into 10.11 on behalf of Anel, who is on leave.

            bnestere Brandon Nesterenko added a comment - Pushed into 10.11 on behalf of Anel, who is on leave.

            MariaDB 10.11 ?

            I even didn't check since 10.9 lol

            Aurelien_LEQUOY Aurélien LEQUOY added a comment - MariaDB 10.11 ? I even didn't check since 10.9 lol

            People

              anel Anel Husakovic
              Aurelien_LEQUOY Aurélien LEQUOY
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.