Commit e09d554e authored by sasha@mysql.sashanet.com's avatar sasha@mysql.sashanet.com
Browse files

test if dirty close releases global read lock held by a thread

parent 23e031f2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
n
3
n
345
+10 −0
Original line number Diff line number Diff line
@@ -32,3 +32,13 @@ connection con2;
unlock tables;
connection con1;
reap;

# test if dirty close releases global read lock
connection con1;
create table t1 (n int);
flush tables with read lock;
dirty_close con1;
connection con2;
insert into t1 values (345);
select * from t1;
drop table t1;