• unknown's avatar
    Fix for bug #22728 "Handler_rollback value is growing". · 0191c41f
    unknown authored
    The bug is present only in 4.1, will be null-merged to 5.0
    
    For InnoDB, check value of thd->transaction.all.innodb_active_trans instead of thd->transaction.stmt.innobase_tid to see if we really need to rollback.
    
    
    mysql-test/r/innodb_mysql.result:
      Added testcase for bug #22728 "Handler_rollback value is growing"
    mysql-test/t/innodb_mysql.test:
      Added testcase for bug #22728 "Handler_rollback value is growing"
    sql/handler.cc:
      For InnoDB, check value of thd->transaction.all.innodb_active_trans instead of thd->transaction.stmt.innobase_tid to see if we really need to rollback.
    0191c41f
innodb_mysql.result 1.85 KB