summaryrefslogtreecommitdiff
path: root/mysql-test/r/flush_block_commit.result
blob: 4a7575d8f7aa9221332b91c3fe452ac31d9ad9f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
drop table if exists t1;
create table t1 (a int) engine=innodb;
begin;
insert into t1 values(1);
flush tables with read lock;
select * from t1;
a
 commit;
select * from t1;
a
unlock tables;
begin;
select * from t1 for update;
a
1
begin;
 select * from t1 for update;
 flush tables with read lock;
commit;
a
1
unlock tables;
commit;
begin;
insert into t1 values(10);
flush tables with read lock;
commit;
unlock tables;
flush tables with read lock;
unlock tables;
drop table t1;