~vadim-tk/percona-server/percona-galera-5.1.57-0.8.1

« back to all changes in this revision

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

  • Committer: root
  • Date: 2011-07-28 00:14:23 UTC
  • Revision ID: root@r815.office.percona.com-20110728001423-6pw0v4b7r0dkbsr4
Ported to Galera 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Save the initial number of concurrent sessions
 
2
--source include/count_sessions.inc
 
3
 
 
4
connect (con1,localhost,root,,);
 
5
connect (con2,localhost,root,,);
 
6
connection con1;
 
7
--disable_warnings
 
8
drop table if exists t1,t2;
 
9
drop view if exists v1;
 
10
--enable_warnings
 
11
 
 
12
# Add a lot of keys to slow down check
 
13
create table t1(n int not null, key(n), key(n), key(n), key(n));
 
14
let $1=10000;
 
15
disable_query_log;
 
16
while ($1)
 
17
{
 
18
 eval insert into t1 values ($1);
 
19
 dec $1;
 
20
}
 
21
enable_query_log;
 
22
send check table t1 extended;
 
23
connection con2;
 
24
insert into t1 values (200000);
 
25
connection con1;
 
26
reap;
 
27
connection default;
 
28
disconnect con1;
 
29
disconnect con2;
 
30
drop table t1;
 
31
 
 
32
 
 
33
# End of 4.1 tests
 
34
 
 
35
#
 
36
# Bug#9897 Views: 'Check Table' crashes MySQL, with a view and a table
 
37
#          in the statement
 
38
#
 
39
Create table t1(f1 int);
 
40
Create table t2(f1 int);
 
41
Create view v1 as Select * from t1;
 
42
Check Table v1,t2;
 
43
drop view v1;
 
44
drop table t1, t2;
 
45
 
 
46
 
 
47
#
 
48
# Bug#26325 TEMPORARY TABLE "corrupt" after first read, according to CHECK TABLE
 
49
#
 
50
CREATE TEMPORARY TABLE t1(a INT);
 
51
CHECK TABLE t1;
 
52
REPAIR TABLE t1;
 
53
DROP TABLE t1;
 
54
 
 
55
 
 
56
# Wait till we reached the initial number of concurrent sessions
 
57
--source include/wait_until_count_sessions.inc