mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.9 into 10.10
This commit is contained in:
@@ -198,6 +198,30 @@ disconnect ddl;
|
||||
SHOW CREATE TABLE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
SHOW CREATE TABLE t3;
|
||||
DROP TABLE t1,t2,t3;
|
||||
DROP TABLE t2,t3;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-29440 InnoDB instant ALTER TABLE recovery wrongly uses
|
||||
--echo # READ COMMITTED isolation level instead of READ UNCOMMITTED
|
||||
--echo #
|
||||
CREATE TABLE t2(a INT UNSIGNED PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1),(2),(3),(4),(5),(6);
|
||||
|
||||
connect ddl, localhost, root;
|
||||
SET DEBUG_SYNC='innodb_alter_inplace_before_commit SIGNAL ddl WAIT_FOR ever';
|
||||
--send
|
||||
ALTER TABLE t2 ADD COLUMN b TINYINT UNSIGNED NOT NULL DEFAULT 42 FIRST;
|
||||
|
||||
connection default;
|
||||
SET DEBUG_SYNC='now WAIT_FOR ddl';
|
||||
SET GLOBAL innodb_flush_log_at_trx_commit=1;
|
||||
DELETE FROM t1;
|
||||
|
||||
--source include/kill_mysqld.inc
|
||||
disconnect ddl;
|
||||
--source include/start_mysqld.inc
|
||||
|
||||
CHECK TABLE t2;
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
--list_files $MYSQLD_DATADIR/test
|
||||
|
@@ -1,23 +1,20 @@
|
||||
--source include/have_innodb.inc
|
||||
--source include/count_sessions.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_debug_sync.inc
|
||||
|
||||
CREATE TABLE t(a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t VALUES (3);
|
||||
|
||||
BEGIN;
|
||||
|
||||
connection default;
|
||||
UPDATE t SET a = 2;
|
||||
|
||||
connect con1,localhost,root;
|
||||
SET DEBUG_SYNC="lock_wait_start SIGNAL del_locked";
|
||||
send DELETE FROM t;
|
||||
|
||||
connection default;
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Updating" and info = "DELETE FROM t";
|
||||
--source include/wait_condition.inc
|
||||
|
||||
SET DEBUG_SYNC="now WAIT_FOR del_locked";
|
||||
UPDATE t SET a = 1;
|
||||
COMMIT;
|
||||
|
||||
@@ -30,5 +27,6 @@ connection default;
|
||||
--echo # The above DELETE must delete all the rows in the table, so the
|
||||
--echo # following SELECT must show 0 rows.
|
||||
SELECT count(*) FROM t;
|
||||
SET DEBUG_SYNC="reset";
|
||||
DROP TABLE t;
|
||||
--source include/wait_until_count_sessions.inc
|
||||
|
Reference in New Issue
Block a user