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
18 lines
591 B
Text
18 lines
591 B
Text
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;
|
|
col_int_key
|
|
6
|
|
connection default;
|
|
DELETE IGNORE FROM t1;;
|
|
connection con1;
|
|
DELETE FROM t1 WHERE col_int_key IN (1, 40000000);
|
|
connection default;
|
|
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");
|