1
0
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:
Sergei Golubchik
2012-03-01 16:24:59 +01:00
parent c0a4377575
commit e7e2058550
5 changed files with 63 additions and 14 deletions

View 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;

View 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;