mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@@ -462,12 +462,27 @@ INSERT INTO t1 SET a=0, i=REPEAT('1', 10000);
|
||||
ROLLBACK;
|
||||
set DEBUG_SYNC='now SIGNAL go';
|
||||
connection default;
|
||||
disconnect con1;
|
||||
SELECT * FROM t1;
|
||||
a b c d e f g h i
|
||||
1 2 3 4 5 6 7 8 test
|
||||
DROP TABLE t1;
|
||||
SET DEBUG_SYNC=RESET;
|
||||
#
|
||||
# MDEV-27962 Instant DDL downgrades the MDL when table is empty
|
||||
#
|
||||
CREATE TABLE t1(f1 INT NOT NULL, f2 INT NOT NULL)ENGINE=InnoDB;
|
||||
SET DEBUG_SYNC="alter_table_inplace_after_lock_downgrade SIGNAL try_insert WAIT_FOR alter_progress";
|
||||
ALTER TABLE t1 ADD INDEX(f1), ADD INDEX(f2);
|
||||
connection con1;
|
||||
SET SESSION lock_wait_timeout=1;
|
||||
SET DEBUG_SYNC="now WAIT_FOR try_insert";
|
||||
INSERT INTO t1 VALUES(1, 2);
|
||||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
||||
SET DEBUG_SYNC="now SIGNAL alter_progress";
|
||||
disconnect con1;
|
||||
connection default;
|
||||
DROP TABLE t1;
|
||||
SET DEBUG_SYNC=reset;
|
||||
# End of 10.4 tests
|
||||
#
|
||||
# MDEV-22867 Assertion instant.n_core_fields == n_core_fields
|
||||
|
20
mysql-test/suite/innodb/r/lock_delete_updated.result
Normal file
20
mysql-test/suite/innodb/r/lock_delete_updated.result
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
DELETE FROM t;
|
||||
connection default;
|
||||
UPDATE t SET a = 1;
|
||||
COMMIT;
|
||||
connection con1;
|
||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
disconnect con1;
|
||||
connection default;
|
||||
# The above DELETE must delete all the rows in the table, so the
|
||||
# following SELECT must show 0 rows.
|
||||
SELECT count(*) FROM t;
|
||||
count(*)
|
||||
1
|
||||
DROP TABLE t;
|
@@ -1,27 +0,0 @@
|
||||
#
|
||||
# MDEV-27025 insert-intention lock conflicts with waiting ORDINARY lock
|
||||
#
|
||||
CREATE TABLE t (a INT PRIMARY KEY, b INT NOT NULL UNIQUE) ENGINE=InnoDB;
|
||||
connect prevent_purge,localhost,root,,;
|
||||
start transaction with consistent snapshot;
|
||||
connection default;
|
||||
INSERT INTO t VALUES (20,20);
|
||||
DELETE FROM t WHERE b = 20;
|
||||
connect con_ins,localhost,root,,;
|
||||
SET DEBUG_SYNC = 'row_ins_sec_index_entry_dup_locks_created SIGNAL ins_set_locks WAIT_FOR ins_cont';
|
||||
INSERT INTO t VALUES(10, 20);
|
||||
connect con_del,localhost,root,,;
|
||||
SET DEBUG_SYNC = 'now WAIT_FOR ins_set_locks';
|
||||
SET DEBUG_SYNC = 'lock_wait_suspend_thread_enter SIGNAL del_locked';
|
||||
DELETE FROM t WHERE b = 20;
|
||||
connection default;
|
||||
SET DEBUG_SYNC = 'now WAIT_FOR del_locked';
|
||||
SET DEBUG_SYNC = 'now SIGNAL ins_cont';
|
||||
connection con_ins;
|
||||
disconnect con_ins;
|
||||
connection con_del;
|
||||
disconnect con_del;
|
||||
disconnect prevent_purge;
|
||||
connection default;
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
DROP TABLE t;
|
@@ -25,3 +25,10 @@ f1
|
||||
disconnect con1;
|
||||
connection default;
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-27993 Assertion failed in btr_page_reorganize_low()
|
||||
#
|
||||
CREATE TABLE t1(a INT PRIMARY KEY, b INT UNIQUE) ENGINE=InnoDB;
|
||||
SET DEBUG_DBUG = '+d,do_page_reorganize';
|
||||
INSERT INTO t1 VALUES(0,0);
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user