1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-35182 crash in online_alter_end_trans with XA over vector indexes

ONLINE ALTER didn't expect XA PREPARE to fail.
Mark rollback on failed prepare with the XA_ROLLBACK_ONLY state,
detect that in ONLINE ALTER
This commit is contained in:
Sergei Golubchik
2024-10-29 12:11:41 +01:00
parent 5bde23990b
commit 88adcbf35a
4 changed files with 47 additions and 2 deletions

View File

@@ -1543,6 +1543,7 @@ int ha_prepare(THD *thd)
{
if (unlikely(prepare_or_error(ht, thd, all)))
{
thd->transaction->xid_state.set_rollback_only();
ha_rollback_trans(thd, all);
error=1;
break;