mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
3435e8a515
innodb_autoinc_lock_mode = 2 innodb_buffer_pool_dump_at_shutdown = ON innodb_buffer_pool_dump_pct = 25 innodb_buffer_pool_load_at_startup = ON innodb_checksum_algorithm = CRC32 innodb_file_format = Barracuda innodb_large_prefix = ON innodb_log_compressed_pages = ON innodb_purge_threads = 4 innodb_strict_mode = ON binlog_annotate_row_events = ON binlog_format = MIXED binlog-row-event-max-size = 8192 group_concat_max_len = 1M lock_wait_timeout = 86400 log_slow_admin_statements = ON log_slow_slave_statements = ON log_warnings = 2 max_allowed_packet = 16M replicate_annotate_row_events = ON slave_net_timeout = 60 sync_binlog = 1 aria_recover = BACKUP,QUICK myisam_recover_options = BACKUP,QUICK
32 lines
793 B
Text
32 lines
793 B
Text
#
|
|
# 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,ER_LOCK_DEADLOCK,ER_LOCK_WAIT_TIMEOUT
|
|
DELETE FROM t1 WHERE col_int_key IN (1, 40000000);
|
|
|
|
--connection default
|
|
--error 0,ER_LOCK_DEADLOCK,ER_LOCK_WAIT_TIMEOUT
|
|
--reap
|
|
|
|
--disconnect con1
|
|
drop table t1;
|
|
SET GLOBAL innodb_lock_wait_timeout=default;
|
|
|
|
call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
|