Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/r/deadlock_detect.result |
SET GLOBAL innodb_deadlock_detect=OFF; SET GLOBAL innodb_lock_wait_timeout=2; CREATE TABLE t1( id INT, PRIMARY KEY(id) ) ENGINE=InnoDB; INSERT INTO t1 VALUES(1), (2), (3); BEGIN; SELECT * FROM t1 WHERE id = 1 FOR UPDATE; id 1 BEGIN; SELECT * FROM t1 WHERE id = 2 FOR UPDATE; id 2 SELECT * FROM t1 WHERE id = 1 FOR UPDATE;; SELECT * FROM t1 WHERE id = 2 FOR UPDATE;; ERROR HY000: Lock wait timeout exceeded; try restarting transaction ROLLBACK; id 2 ROLLBACK; DROP TABLE t1; SET GLOBAL innodb_lock_wait_timeout=default; SET GLOBAL innodb_deadlock_detect=default;