~sergei.glushchenko/percona-xtrabackup/buffer_pool_dump

« back to all changes in this revision

Viewing changes to test/t/innodb_page_size.sh

  • Committer: Alexey Kopytov
  • Date: 2013-04-23 11:04:23 UTC
  • Revision ID: akopytov@gmail.com-20130423110423-lt13snzi53lps1xf
Implementation of
https://blueprints.launchpad.net/percona-xtrabackup/+spec/support-56-innodb-page-size

innodb_page_size was only handled by XtraDB-based binaries, but ignored
by xtrabackup_56, since it is not XtraDB-based.

This revision also removes innodb_file_per_table from --print-param,
since it was not used by anything and is not required on any backup
stage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
########################################################################
 
2
# Test support for innodb_page_size
 
3
########################################################################
 
4
 
 
5
. inc/common.sh
 
6
 
 
7
if [ ${MYSQL_VERSION:0:3} != "5.6" -a -z "$XTRADB_VERSION" ]
 
8
then
 
9
    echo "Requires either XtraDB or a 5.6 server" > $SKIPPED_REASON
 
10
    exit $SKIPPED_EXIT_CODE
 
11
fi
 
12
 
 
13
MYSQLD_EXTRA_MY_CNF_OPTS="
 
14
innodb_file_per_table=1
 
15
innodb_page_size=8192
 
16
"
 
17
start_server
 
18
load_sakila
 
19
 
 
20
checksum1=`checksum_table sakila payment`
 
21
test -n "$checksum1" || die "Failed to checksum table sakila.payment"
 
22
 
 
23
innobackupex --no-timestamp $topdir/backup
 
24
 
 
25
stop_server
 
26
rm -rf $MYSQLD_DATADIR/*
 
27
 
 
28
innobackupex --apply-log $topdir/backup
 
29
 
 
30
innobackupex --copy-back $topdir/backup
 
31
 
 
32
start_server
 
33
 
 
34
checksum2=`checksum_table sakila payment`
 
35
test -n "$checksum2" || die "Failed to checksum table sakila.payment"
 
36
 
 
37
vlog "Old checksum: $checksum1"
 
38
vlog "New checksum: $checksum2"
 
39
 
 
40
if [ "$checksum1" != "$checksum2"  ]
 
41
then
 
42
    die "Checksums do not match"
 
43
fi