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

gtid function BINLOG_GTID_POS

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.2.3
    • N/A
    • Replication
    • mariadb-10.2.3

    Description

      When we use BINLOG_GTID_POS to get gtid from binlog file/position ,it call the function to get gtid(in sql_repl.cc):

          gtid_state_from_pos:
                   .......
                  if ({color:red}gtid_state->load((const rpl_gtid *)NULL, 0){color})
                  {
                   errormsg= "Internal error (out of memory?) initializing slave state "
                  "while scanning binlog to find start position";
                   return errormsg;
                   }
      

      But ,the function gtid_state->load((const rpl_gtid *)NULL, 0) is always true (because count==0):

                int   slave_connection_state::load(const rpl_gtid *gtid_list, uint32 count)
                {
                  uint32 i; 
                  reset();
                  for (i= 0; i < count; ++i)
                      if (update(&gtid_list[i]))
                          return 1;
                return 0;
                }
      

      Why we need this ??

      Attachments

        Activity

          People

            knielsen Kristian Nielsen
            zxszcaijin jinlong.cai
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.