mirror of
https://github.com/MariaDB/server.git
synced 2025-02-05 13:22:17 +01:00
ec0e9d6f76
A wsrep transaction was started for EXECUTE IMMEDIATE, which caused assertion failure when the executed statement was CREATE TABLE which should be executed in TOI mode. As a fix, don't start wsrep transaction for EXECUTE IMMEDIATE to let the wsrep state logic to be handled from inside stored procedure codepath. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
15 lines
556 B
Text
15 lines
556 B
Text
#
|
|
# MDEV-22681: Server crashes in galera::ReplicatorSMM::CommitOrder::CommitOrder
|
|
# or assertion failed in wsrep::transaction::before_prepare.
|
|
#
|
|
# EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 ENGINE=InnoDB AS SELECT 1 AS b'
|
|
# crashes the server if binlog is on (see mdev_22681.cnf for configuration).
|
|
#
|
|
--source include/have_wsrep.inc
|
|
--source include/have_wsrep_provider.inc
|
|
--source include/have_innodb.inc
|
|
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
|
EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 ENGINE=InnoDB AS SELECT 1 AS b';
|
|
|
|
DROP TABLE t1;
|