mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-7936: Assertion `!table || table->in_use == _current_thd()' failed on parallel replication in optimistic mode
Additional 10.1-specific test case.
This commit is contained in:
@@ -137,6 +137,32 @@ a b
|
||||
30 conservative
|
||||
31 conservative
|
||||
include/stop_slave.inc
|
||||
SET @old_mode= @@GLOBAL.slave_parallel_mode;
|
||||
SET GLOBAL slave_parallel_mode=optimistic;
|
||||
CREATE TEMPORARY TABLE t4 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t4 VALUES (32);
|
||||
INSERT INTO t4 VALUES (33);
|
||||
INSERT INTO t1 SELECT a, "optimistic" FROM t4;
|
||||
DROP TEMPORARY TABLE t4;
|
||||
SELECT * FROM t1 WHERE a >= 30 ORDER BY a;
|
||||
a b
|
||||
30 conservative
|
||||
31 conservative
|
||||
32 optimistic
|
||||
33 optimistic
|
||||
include/save_master_pos.inc
|
||||
include/start_slave.inc
|
||||
include/sync_with_master_gtid.inc
|
||||
SELECT * FROM t1 WHERE a >= 30 ORDER BY a;
|
||||
a b
|
||||
30 conservative
|
||||
31 conservative
|
||||
32 optimistic
|
||||
33 optimistic
|
||||
include/stop_slave.inc
|
||||
SET GLOBAL slave_parallel_mode=@old_mode;
|
||||
include/start_slave.inc
|
||||
include/stop_slave.inc
|
||||
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
|
||||
include/start_slave.inc
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user