Commit 0c3791ca authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-11227 - mysqlimport -l doesn't issue UNLOCK TABLES

Merged fix for innodb_mysql from 5.7.
parent 9b10b418
......@@ -654,9 +654,11 @@ INSERT INTO t2 VALUES (1);
CONNECTION c2;
SET AUTOCOMMIT=0;
SET @old_lock_wait_timeout= @@lock_wait_timeout;
SET lock_wait_timeout= 1;
--error ER_LOCK_WAIT_TIMEOUT
LOCK TABLES t1 READ, t2 READ;
SET @@lock_wait_timeout= @old_lock_wait_timeout;
CONNECTION c1;
COMMIT;
INSERT INTO t1 VALUES (1);
......
......@@ -678,8 +678,11 @@ SET AUTOCOMMIT=0;
INSERT INTO t2 VALUES (1);
connection c2;
SET AUTOCOMMIT=0;
SET @old_lock_wait_timeout= @@lock_wait_timeout;
SET lock_wait_timeout= 1;
LOCK TABLES t1 READ, t2 READ;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SET @@lock_wait_timeout= @old_lock_wait_timeout;
connection c1;
COMMIT;
INSERT INTO t1 VALUES (1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment