Commit 5ef5ba55 authored by Marko Mäkelä's avatar Marko Mäkelä

Promote partial rollback to full rollback

parent f51bd5cc
......@@ -730,9 +730,14 @@ row_mysql_handle_errors(
trx->rollback(savept);
}
trx->bulk_insert = false;
if (!trx->bulk_insert) {
/* MariaDB will roll back the latest SQL statement */
break;
}
/* MariaDB will roll back the entire transaction. */
trx->bulk_insert = false;
trx->last_sql_stat_start.least_undo_no = 0;
break;
case DB_LOCK_WAIT:
err = lock_wait(thr);
if (err != DB_SUCCESS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment