~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/t/flush_table.test

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Test for with read lock + flush
16
16
 
17
17
lock table t1 read;
 
18
--error ER_TABLE_NOT_LOCKED_FOR_WRITE
 
19
flush table t1;
 
20
unlock tables;
 
21
 
 
22
# Test for with write lock + flush
 
23
 
 
24
lock table t1 write;
18
25
flush table t1;
19
26
check table t1;
20
27
unlock tables;
21
28
 
22
 
# Test for with 2 read lock in different thread + flush
 
29
# Test for with a write lock and a waiting read lock + flush
23
30
 
24
 
lock table t1 read;
 
31
lock table t1 write;
25
32
connect (locker,localhost,root,,test);
26
33
connection locker;
27
 
lock table t1 read;
28
 
connection default;
29
 
send flush table t1;
30
 
connection locker;
31
 
--sleep 2
32
 
select * from t1;
33
 
unlock tables;
34
 
connection default;
35
 
reap;
36
 
select * from t1;
37
 
unlock tables;
38
 
 
39
 
# Test for with a write lock and a waiting read lock + flush
40
 
 
41
 
lock table t1 write;
42
 
connection locker;
43
34
send lock table t1 read;
44
35
connection default;
45
36
sleep 2;
51
42
unlock tables;
52
43
connection default;
53
44
 
54
 
# Test for with a read lock and a waiting write lock + flush
 
45
# Test for with a write lock and a waiting write lock + flush
55
46
 
56
 
lock table t1 read;
 
47
lock table t1 write;
57
48
connection locker;
58
49
send lock table t1 write;
59
50
connection default;