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

Promote partial rollback to full rollback

parent f51bd5cc
......@@ -730,8 +730,13 @@ row_mysql_handle_errors(
trx->rollback(savept);
}
if (!trx->bulk_insert) {
/* MariaDB will roll back the latest SQL statement */
break;
}
/* MariaDB will roll back the entire transaction. */
trx->bulk_insert = false;
/* MariaDB will roll back the latest SQL statement */
trx->last_sql_stat_start.least_undo_no = 0;
break;
case DB_LOCK_WAIT:
err = lock_wait(thr);
......
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