1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

Merged fix for innodb_mysql from 5.7.
This commit is contained in:
Sergey Vojtovich
2016-12-22 14:02:27 +04:00
parent 9b10b4181f
commit 0c3791caae
2 changed files with 6 additions and 1 deletions

View File

@ -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);