mirror of
https://github.com/MariaDB/server.git
synced 2025-02-05 13:22:17 +01:00
22 lines
591 B
Text
22 lines
591 B
Text
#
|
|
# Statement with no side effects causes unnecessary full rollback
|
|
#
|
|
|
|
--source include/galera_cluster.inc
|
|
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY);
|
|
SET SESSION wsrep_trx_fragment_size=1;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
# Let's cause some bogus error with a statement that
|
|
# does not cause any replication event.
|
|
# The following used to return error ER_LOCK_DEADLOCK
|
|
# and cause the entire transaction to be rolled back.
|
|
--error ER_GLOBAL_VARIABLE
|
|
SET SESSION wsrep_cluster_name = ' ';
|
|
|
|
INSERT INTO t1 VALUES (2);
|
|
COMMIT;
|
|
|
|
SELECT f1 AS expect_1_and_2 FROM t1;
|
|
DROP TABLE t1;
|