~jlukas79/+junk/mysql-server

« back to all changes in this revision

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

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
create table t1 (c1 int);
69
69
lock table t1 write;
70
70
# Cannot get the global read lock with write locked tables.
71
 
--error 1192
 
71
--error ER_LOCK_OR_ACTIVE_TRANSACTION 
72
72
flush tables with read lock;
73
73
lock table t1 read;
74
 
# Can get the global read lock with read locked tables.
 
74
# Cannot get the global read lock with read locked tables.
 
75
--error ER_LOCK_OR_ACTIVE_TRANSACTION
 
76
flush tables with read lock;
 
77
unlock tables;
75
78
flush tables with read lock;
76
79
--error 1223
77
80
lock table t1 write;
84
87
create table t3 (c1 int);
85
88
lock table t1 read, t2 read, t3 write;
86
89
# Cannot get the global read lock with write locked tables.
87
 
--error 1192
 
90
--error ER_LOCK_OR_ACTIVE_TRANSACTION
88
91
flush tables with read lock;
89
92
lock table t1 read, t2 read, t3 read;
90
 
# Can get the global read lock with read locked tables.
 
93
# Cannot get the global read lock with read locked tables.
 
94
--error ER_LOCK_OR_ACTIVE_TRANSACTION
91
95
flush tables with read lock;
92
 
# Release all table locks and the global read lock.
93
96
unlock tables;
94
97
drop table t1, t2, t3;
95
98
 
157
160
unlock tables;
158
161
 
159
162
lock tables t1 read;
 
163
--error ER_LOCK_OR_ACTIVE_TRANSACTION
160
164
flush tables with read lock;
161
165
unlock tables;
162
166