1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-35061 XA PREPARE "not supported by the engine" from storage engine mhnsw, memory leak

disallow explicit XA PREPARE over mhnsw indexes
This commit is contained in:
Sergei Golubchik
2024-10-02 20:33:42 +02:00
parent 09cd817f5d
commit eb4ab2ce8f
5 changed files with 42 additions and 5 deletions

View File

@@ -1508,9 +1508,7 @@ static int prepare_or_error(transaction_participant *ht, THD *thd, bool all)
int err= ht->prepare(thd, all);
status_var_increment(thd->status_var.ha_prepare_count);
if (err)
{
my_error(ER_ERROR_DURING_COMMIT, MYF(0), err);
}
my_error(ER_GET_ERRNO, MYF(0), err, hton_name(ht)->str);
#ifdef WITH_WSREP
if (run_wsrep_hooks && !err && ht->flags & HTON_WSREP_REPLICATION &&
wsrep_after_prepare(thd, all))