mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
18 lines
510 B
Text
18 lines
510 B
Text
--source include/have_innodb.inc
|
|
--source include/have_partition.inc
|
|
|
|
CREATE TABLE t1 (a INT) ENGINE = InnoDB PARTITION BY HASH(a);
|
|
INSERT INTO t1 VALUES (0), (1), (2);
|
|
START TRANSACTION;
|
|
UPDATE t1 SET a = 5 WHERE a = 1;
|
|
connect (con1, localhost, root,,);
|
|
--echo # InnoDB lock timeout and monitor thread runs every 15 seconds
|
|
SET innodb_lock_wait_timeout = 20;
|
|
START TRANSACTION;
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
UPDATE t1 SET a = 3 WHERE a = 1;
|
|
COMMIT;
|
|
disconnect con1;
|
|
connection default;
|
|
COMMIT;
|
|
DROP TABLE t1;
|