Debian Codegraph @

mysql-test/suite/innodb_zip/include/innodb_stats_comp_index.inc

raw
1 --echo # Check the stats of the table
2 --echo # Check the size of the ibd file
3
4 -- echo # testcase : pass = 1 fail = 0
5 SELECT count(*) > 0 as "compress_stat"
6 FROM information_schema.innodb_cmp_per_index
7 WHERE
8 compress_ops_ok BETWEEN @inl_val AND 1000
9 AND compress_ops BETWEEN @inl_val AND 1000
10 AND table_name='tab5' AND database_name='test'
11 AND index_name like 'idx%' ;
12
13 perl;
14 my $dir = $ENV{'MYSQLD_DATADIR'}."test";
15 my $size;
16 opendir(DIR, $dir) or die $!;
17 while (my $file = readdir(DIR))
18 {
19
20 next unless ($file =~ m/\.ibd$/);
21 $size = -s "$dir/$file";
22 print "The size of the tab5.ibd file: $size\n";
23 }
24 close(DIR);
25 exit(0)
26 EOF