This function is called when a transaction or a statement is rolled back. @internal It is necessary to execute a rollback here if the transaction was rolled back because of executing a ROLLBACK TO SAVEPOINT command, but it is not used for normal rollback since MYSQL_BIN_LOG::rollback is called in that case. @todo Refactor code to introduce a MYSQL_BIN_LOG::rollback(THD *thd, SA
| 1480 | @see handlerton::rollback |
| 1481 | */ |
| 1482 | static int binlog_rollback(handlerton *hton, THD *thd, bool all) |
| 1483 | { |
| 1484 | DBUG_ENTER("binlog_rollback"); |
| 1485 | int error= 0; |
| 1486 | if (thd->lex->sql_command == SQLCOM_ROLLBACK_TO_SAVEPOINT) |
| 1487 | error= mysql_bin_log.rollback(thd, all); |
| 1488 | DBUG_RETURN(error); |
| 1489 | } |
| 1490 | |
| 1491 | |
| 1492 | bool |