mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-117 Assertion: prebuilt->sql_stat_start || trx->conc_state == 1 failed at row0sel.c:3933
DELETE IGNORE should not ignore deadlocks sql/mdl.cc: more DBUG_ENTER/DBUG_RETURN sql/sql_base.cc: more DBUG_ENTER/DBUG_RETURN
This commit is contained in:
12
mysql-test/suite/innodb/r/mdev-117.result
Normal file
12
mysql-test/suite/innodb/r/mdev-117.result
Normal file
@ -0,0 +1,12 @@
|
||||
SET GLOBAL innodb_lock_wait_timeout=3;
|
||||
CREATE TABLE t1 (col_int_key INT, KEY (col_int_key)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (6);
|
||||
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
SELECT col_int_key FROM t1;
|
||||
col_int_key
|
||||
6
|
||||
DELETE IGNORE FROM t1;;
|
||||
DELETE FROM t1 WHERE col_int_key IN (1, 40000000);
|
||||
drop table t1;
|
||||
SET GLOBAL innodb_lock_wait_timeout=default;
|
30
mysql-test/suite/innodb/t/mdev-117.test
Normal file
30
mysql-test/suite/innodb/t/mdev-117.test
Normal file
@ -0,0 +1,30 @@
|
||||
#
|
||||
# verify that DELETE IGNORE does not ignore deadlocks
|
||||
#
|
||||
|
||||
--source include/have_innodb.inc
|
||||
|
||||
SET GLOBAL innodb_lock_wait_timeout=3;
|
||||
|
||||
CREATE TABLE t1 (col_int_key INT, KEY (col_int_key)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (6);
|
||||
|
||||
--connect (con1,localhost,root,,test)
|
||||
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
SELECT col_int_key FROM t1;
|
||||
|
||||
--connection default
|
||||
--send DELETE IGNORE FROM t1;
|
||||
|
||||
--connection con1
|
||||
--error 0,1213
|
||||
DELETE FROM t1 WHERE col_int_key IN (1, 40000000);
|
||||
|
||||
--connection default
|
||||
--error 0,1213
|
||||
--reap
|
||||
|
||||
--disconnect con1
|
||||
drop table t1;
|
||||
SET GLOBAL innodb_lock_wait_timeout=default;
|
Reference in New Issue
Block a user