mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
77f5b188d3
Applier does not reset thd->wsrep_apply_toi if applier thread decides to exit by setting 'exit= true'. The problem is that galera side may decide not to kill the applier thread: for instance if we try to SET wsrep_slave_threads = 0; then galera refuses to kill the last applier thread. If this happens we are left with a thd which has not been reset to the initial state. This patch ensures that the thd is reset regardless of the applier thread exiting or not.
13 lines
263 B
Text
13 lines
263 B
Text
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
--connection node_2
|
|
SET GLOBAL wsrep_slave_threads = 0;
|
|
|
|
--connection node_1
|
|
CREATE TABLE t1 (f1 INT PRIMARY KEY) Engine=InnoDB;
|
|
|
|
--connection node_1
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
DROP TABLE t1;
|