• unknown's avatar
    Fix for BUG#8325 "Deadlock in replication thread stops replication": · d7e0784c
    unknown authored
    in slave SQL thread: if a transaction fails because of InnoDB deadlock or innodb_lock_wait_timeout exceeded,
    optionally retry the transaction a certain number of times (new variable --slave_transaction_retries).
    
    
    sql/mysql_priv.h:
      new var slave_transaction_retries
    sql/mysqld.cc:
      new variable slave_transaction_retries. Plus fixing a typo.
    sql/set_var.cc:
      new global variable slave_transaction_retries (will be one per subslave, when we have multimaster).
    sql/slave.cc:
      Slave SQL thread: if a transaction fails because of InnoDB deadlock or innodb_lock_wait_timeout exceeded,
      optionally retry the transaction a certain number of times (--slave_transaction_retries).
    sql/slave.h:
      new RELAY_LOG_INFO::trans_retries.
    d7e0784c
rpl_deadlock.test 2.72 KB