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

Remove rpl_semi_sync_[master,slave] plugin keyword usage in code

Details

    Description

      According to the documentation of rpl_semi_sync_slave, this option is removed and indeed -result

      show variables like 'rpl_semi_sync_slave%';
      Variable_name	Value
      rpl_semi_sync_slave_delay_master	OFF
      rpl_semi_sync_slave_enabled	OFF
      rpl_semi_sync_slave_kill_conn_timeout	5
      rpl_semi_sync_slave_trace_level	32
      

      However there is usage of this variable in functions is_semi_sync_slave() and Repl_semi_sync_slave::request_transmit()

      inline bool is_semi_sync_slave()
      {
        int null_value;
        long long val= 0;
        get_user_var_int("rpl_semi_sync_slave", &val, &null_value);
        return val;
      }
      

      It should be changed with rpl_semi_sync_slave_enabled (KB)see Repl_semi_sync_slave::init_object().

      Attachments

        Issue Links

          Activity

            anel Anel Husakovic created issue -
            anel Anel Husakovic made changes -
            Field Original Value New Value
            Summary Remove rpl_semi_sync_slave variable Remove rpl_semi_sync_slave usage in code
            anel Anel Husakovic made changes -
            Description According to the documentation of [rpl_semi_sync_slave|https://mariadb.com/kb/en/semisynchronous-replication/#rpl_semi_sync_slave], this option is removed and indeed -[result|https://dbfiddle.uk/HxFZFJKK]
            {code:sql}
            show variables like 'rpl_semi_sync_slave%';
            Variable_name Value
            rpl_semi_sync_slave_delay_master OFF
            rpl_semi_sync_slave_enabled OFF
            rpl_semi_sync_slave_kill_conn_timeout 5
            rpl_semi_sync_slave_trace_level 32
            {code}
            However there is usage of this variable in functions {{is_semi_sync_slave()}} and {{Repl_semi_sync_slave::request_transmit()}}
            {code:C}
            inline bool is_semi_sync_slave()
            {
              int null_value;
              long long val= 0;
              get_user_var_int("rpl_semi_sync_slave", &val, &null_value);
              return val;
            }
            {code}
            It should be changed with {{rpl_semi_sync_slave_enabled}} see {{Repl_semi_sync_slave::init_object()}}.
            According to the documentation of [rpl_semi_sync_slave|https://mariadb.com/kb/en/semisynchronous-replication/#rpl_semi_sync_slave], this option is removed and indeed -[result|https://dbfiddle.uk/HxFZFJKK]
            {code:sql}
            show variables like 'rpl_semi_sync_slave%';
            Variable_name Value
            rpl_semi_sync_slave_delay_master OFF
            rpl_semi_sync_slave_enabled OFF
            rpl_semi_sync_slave_kill_conn_timeout 5
            rpl_semi_sync_slave_trace_level 32
            {code}
            However there is usage of this variable in functions {{is_semi_sync_slave()}} and {{Repl_semi_sync_slave::request_transmit()}}
            {code:C}
            inline bool is_semi_sync_slave()
            {
              int null_value;
              long long val= 0;
              get_user_var_int("rpl_semi_sync_slave", &val, &null_value);
              return val;
            }
            {code}
            It should be changed with {{rpl_semi_sync_slave_enabled}} ([KB|https://mariadb.com/kb/en/semisynchronous-replication/#rpl_semi_sync_slave_enabled])see {{Repl_semi_sync_slave::init_object()}}.
            anel Anel Husakovic made changes -
            Assignee Brandon Nesterenko [ JIRAUSER48702 ] Anel Husakovic [ anel ]
            anel Anel Husakovic made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            anel Anel Husakovic made changes -
            anel Anel Husakovic made changes -
            Summary Remove rpl_semi_sync_slave usage in code Remove rpl_semi_sync_[master,slave] plugin keyword usage in code
            anel Anel Husakovic made changes -
            anel Anel Husakovic made changes -
            Assignee Anel Husakovic [ anel ] Brandon Nesterenko [ JIRAUSER48702 ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            bnestere Brandon Nesterenko made changes -
            Assignee Brandon Nesterenko [ JIRAUSER48702 ] Anel Husakovic [ anel ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            anel Anel Husakovic made changes -
            Fix Version/s 10.4.29 [ 28510 ]
            Fix Version/s 10.5.20 [ 28512 ]
            Fix Version/s 10.3 [ 22126 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]

            People

              anel Anel Husakovic
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.