~percona-core/percona-xtrabackup/2.0

« back to all changes in this revision

Viewing changes to test/t/bug1247586.sh

  • Committer: Alexey Kopytov
  • Date: 2013-11-05 09:54:40 UTC
  • mto: This revision was merged to the branch mainline in revision 588.
  • Revision ID: akopytov@gmail.com-20131105095440-b6s71rpwm0wj3c3d
Bug #1247586: xtrabackup_56 defaults to innodb_checksum_algorithm=crc32

Fixed by changing the default value from 0 to
SRV_CHECKSUM_ALGORITHM_INNODB.

Bug #1248065: innodb_checksum_algorithm should be stored in
backup-my.cnf

Modified both innobackupex and the xtrabackup binary so that
innodb_checksum_algorithm is stored in backup-my.cnf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##########################################################################
 
2
# Bug #1247586: xtrabackup_56 defaults to innodb_checksum_algorithm=crc32
 
3
##########################################################################
 
4
 
 
5
if [ ${MYSQL_VERSION:0:3} != "5.6" ]
 
6
then
 
7
    echo "Requires a 5.6 server" > $SKIPPED_REASON
 
8
    exit $SKIPPED_EXIT_CODE
 
9
fi
 
10
 
 
11
if ! xtrabackup --help 2>&1 |
 
12
       egrep '^innodb-checksum-algorithm[[:space:]]+innodb$'
 
13
then
 
14
    die "XtraBackup is using an incorrect default value for \
 
15
--innodb-checksum-algorithm"
 
16
fi