mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-24981 LOAD INDEX may cause rollback of prepared XA transaction
XAER_RMFAIL means the admin statement was not allowed, it's not a per-table message, so must fail the whole statement. And must not rollback, obviously, it's not allowed after prepare. Also, remove duplicate XAER_RMFAIL in open_tables(), check_has_uncommitted_xa() already issues it.
This commit is contained in:
@@ -565,6 +565,9 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
||||
Disable_wsrep_on_guard wsrep_on_guard(thd, disable_wsrep_on);
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
if (thd->transaction->xid_state.check_has_uncommitted_xa())
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
fill_check_table_metadata_fields(thd, &field_list);
|
||||
|
||||
if (protocol->send_result_set_metadata(&field_list,
|
||||
|
Reference in New Issue
Block a user