~sergei.glushchenko/percona-xtrabackup/20-decompress

« back to all changes in this revision

Viewing changes to test/t/bug976945.sh

  • Committer: Stewart Smith
  • Date: 2012-08-02 04:11:23 UTC
  • mfrom: (440.2.1 xb20-lbs-new)
  • Revision ID: stewart@flamingspork.com-20120802041123-3kzlqgoacy5wjewr
merge fix for Bug #976945: innodb_log_block_size=4096 is not supported

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
############################################################################
 
2
# Bug #976945: innodb_log_block_size=4096 is not supported
 
3
############################################################################
 
4
. inc/common.sh
 
5
 
 
6
if [ -z "$XTRADB_VERSION" ]; then
 
7
    echo "Requires XtraDB" > $SKIPPED_REASON
 
8
    exit $SKIPPED_EXIT_CODE
 
9
fi
 
10
 
 
11
start_server --innodb_log_block_size=4096
 
12
echo innodb_log_block_size=4096 >> ${MYSQLD_VARDIR}/my.cnf
 
13
load_sakila
 
14
 
 
15
# Full backup
 
16
vlog "Starting backup"
 
17
 
 
18
full_backup_dir=${MYSQLD_VARDIR}/full_backup
 
19
innobackupex  --no-timestamp $full_backup_dir
 
20
 
 
21
vlog "Preparing backup"
 
22
innobackupex --apply-log --redo-only $full_backup_dir
 
23
vlog "Log applied to full backup"
 
24
 
 
25
# Destroying mysql data
 
26
stop_server
 
27
rm -rf $mysql_datadir/*
 
28
vlog "Data destroyed"
 
29
 
 
30
# Restore backup
 
31
vlog "Copying files to their original locations"
 
32
innobackupex --copy-back $full_backup_dir
 
33
vlog "Data restored"
 
34
 
 
35
start_server --innodb_log_block_size=4096