Browse Source
MDEV-117 Assertion: prebuilt->sql_stat_start || trx->conc_state == 1 failed at row0sel.c:3933
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
5 changed files with 63 additions and 14 deletions
-
12mysql-test/suite/innodb/r/mdev-117.result
-
30mysql-test/suite/innodb/t/mdev-117.test
-
2sql/handler.cc
-
22sql/mdl.cc
-
11sql/sql_base.cc
@ -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; |
|||
@ -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; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue