MDEV-36787 Error 153: No savepoint with that name upon ROLLBACK TO SAVEPOINT, assertion failure

1. InnoDB should return HA_ERR_ROLLBACK if it aborts a transaction internally
2. the server should recognize it and perform an automatic rollback
This commit is contained in:
Sergei Golubchik 2026-01-25 13:20:51 +01:00
commit 387fe5ecc3
6 changed files with 42 additions and 9 deletions

View file

@ -15938,6 +15938,7 @@ ha_innobase::extra(
trx = check_trx_exists(ha_thd());
m_prebuilt->table->skip_alter_undo = 0;
trx->rollback();
return(HA_ERR_ROLLBACK);
}
break;
default:/* Do nothing */