MCPcopy Create free account
hub / github.com/Tencent/phxsql / binlog_rollback

Function binlog_rollback

phx_percona/percona/sql/binlog.cc:1482–1489  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1480 @see handlerton::rollback
1481*/
1482static 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
1492bool

Callers

nothing calls this directly

Calls 1

rollbackMethod · 0.80

Tested by

no test coverage detected