Skip to content
  • magnus.blaudd@oracle.com's avatar
    bae3253e
    Bug#16021884 REPLACE .. SELECT CRASH USING NULL POINTER IN APPLYING_BINLOG · bae3253e
    magnus.blaudd@oracle.com authored
     - Crash occured in ha_ndbcluster::applying_binlog(),  m_thd_ndb was NULL
       since the extra(HA_EXTRA_WRITE_CAN_REPLACE) call comes before
        table has been locked. It's thus not possible to use m_thd_ndb
        in any function being called from ha_ndbcluster::extra()
     - Utilize that the new pseudo_slave_mode variable  deletes the rli_fake* when
        mysqlbinlog is done executing binlog. Thus the thd->rli_fake can realiably be used
       to determine wheter "applying_binlog" should return true.
     - Move applying_binlog to ndb_thd.h since it's now a THD* only function.
     - Enable disabled testcase
     - Improve the usage of applying_binlog() in ndbcluster_commit by reading
       it's result into a variable named "ignore_error" since that is what the function
      is used for.
     - Remove unused ndb_mi_get_in_relay_log_statement()
    bae3253e
    Bug#16021884 REPLACE .. SELECT CRASH USING NULL POINTER IN APPLYING_BINLOG
    magnus.blaudd@oracle.com authored
     - Crash occured in ha_ndbcluster::applying_binlog(),  m_thd_ndb was NULL
       since the extra(HA_EXTRA_WRITE_CAN_REPLACE) call comes before
        table has been locked. It's thus not possible to use m_thd_ndb
        in any function being called from ha_ndbcluster::extra()
     - Utilize that the new pseudo_slave_mode variable  deletes the rli_fake* when
        mysqlbinlog is done executing binlog. Thus the thd->rli_fake can realiably be used
       to determine wheter "applying_binlog" should return true.
     - Move applying_binlog to ndb_thd.h since it's now a THD* only function.
     - Enable disabled testcase
     - Improve the usage of applying_binlog() in ndbcluster_commit by reading
       it's result into a variable named "ignore_error" since that is what the function
      is used for.
     - Remove unused ndb_mi_get_in_relay_log_statement()
Loading