Commit 04741dc7 authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Jan Lindström

MENT-1047 Assertion `active() == false' failed with "XA START.."

Galera replication does not support XA transactions yet. Reject any
attempt to `XA START` a transaction, if Galera is enabled.
Reviewed-by: default avatarJan Lindström <jan.lindstrom@mariadb.com>
parent b79b3ff6
connection node_2;
connection node_1;
XA START 'trx';
ERROR 42000: This version of MariaDB doesn't yet support 'XA transactions with Galera replication'
#
# MENT-1047 - Reject XA with Galera replication
#
--source include/galera_cluster.inc
--error ER_NOT_SUPPORTED_YET
XA START 'trx';
...@@ -5987,6 +5987,14 @@ mysql_execute_command(THD *thd) ...@@ -5987,6 +5987,14 @@ mysql_execute_command(THD *thd)
break; break;
} }
case SQLCOM_XA_START: case SQLCOM_XA_START:
#ifdef WITH_WSREP
if (WSREP(thd))
{
my_error(ER_NOT_SUPPORTED_YET, MYF(0),
"XA transactions with Galera replication");
break;
}
#endif /* WITH_WSREP */
if (trans_xa_start(thd)) if (trans_xa_start(thd))
goto error; goto error;
my_ok(thd); my_ok(thd);
......
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