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

updated lock test

parent 9f00125a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6,3 +6,5 @@ Table Op Msg_type Msg_text
test.t2	check	error	Table 't2' was not locked with LOCK TABLES
n
1
n
1
+16 −0
Original line number Diff line number Diff line
@@ -75,3 +75,19 @@ connection reader;
reap;
drop table t1;

connection locker;
create table t1(n int);
insert into t1 values (1);
lock tables t1 read;
connection writer;
send update low_priority t1 set n = 4;
connection reader;
send select n from t1;
connection locker;
unlock tables;
connection writer;
reap;
connection reader;
reap;
drop table t1;