~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb_zip/t/innodb_cmp_drop_table.test

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen, Otto Kekäläinen, James Page
  • Date: 2014-03-02 01:38:26 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140302013826-z3afnfteqo86pccd
[ Otto Kekäläinen ]
* New upstream release.
* Updated Danish debconf translation (Closes: #739750).
* d/control: Added explicit Conflicts/Replaces for mysql-5.6 packages
  (Closes: #739841).
* d/control: Update for use of virtual-* packages for switching to/from
  MySQL alternatives.

[ James Page ]
* d/control: Drop Nicholas from Uploaders, MIA (Closes: #739360).
* d/control: Add libjemalloc-dev to BD's.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/have_innodb.inc
 
2
 
 
3
let $per_table=`select @@innodb_file_per_table`;
 
4
let $format=`select @@innodb_file_format`;
 
5
 
 
6
-- let $query_i_s = SELECT page_size FROM information_schema.innodb_cmpmem WHERE pages_used > 0
 
7
 
 
8
set global innodb_file_per_table=on;
 
9
set global innodb_file_format=`1`;
 
10
 
 
11
create table t1(a text) engine=innodb key_block_size=8;
 
12
 
 
13
-- disable_query_log
 
14
 
 
15
# insert some rows so we are using compressed pages
 
16
-- let $i = 10
 
17
while ($i)
 
18
{
 
19
  insert into t1 values(repeat('abcdefghijklmnopqrstuvwxyz',100));
 
20
  dec $i;
 
21
}
 
22
-- enable_query_log
 
23
 
 
24
# we should be using some 8K pages
 
25
-- eval $query_i_s
 
26
 
 
27
drop table t1;
 
28
 
 
29
# because of lazy eviction at drop table in 5.5 there should be some
 
30
# used 8K pages
 
31
-- eval $query_i_s
 
32
 
 
33
# create a non-compressed table and insert enough into it to evict
 
34
# compressed pages
 
35
create table t2(a text) engine=innodb;
 
36
 
 
37
-- disable_query_log
 
38
 
 
39
-- let $i = 400
 
40
while ($i)
 
41
{
 
42
  insert into t2 values(repeat('abcdefghijklmnopqrstuvwxyz',1000));
 
43
  dec $i;
 
44
}
 
45
 
 
46
-- enable_query_log
 
47
 
 
48
# now there should be no 8K pages in the buffer pool
 
49
-- eval $query_i_s
 
50
 
 
51
drop table t2;
 
52
 
 
53
#
 
54
# restore environment to the state it was before this test execution
 
55
#
 
56
 
 
57
-- disable_query_log
 
58
eval set global innodb_file_format=$format;
 
59
eval set global innodb_file_per_table=$per_table;