• unknown's avatar
    Fix for BUG#8325 "Deadlock in replication thread stops replication": · 932f63ac
    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.
    932f63ac
mysql_priv.h 47.8 KB