~hrvojem/percona-xtrabackup/bug1100008-2.0

« back to all changes in this revision

Viewing changes to test/t/ib_part_tf_myisam.sh

  • Committer: jenkins at percona
  • Date: 2013-01-09 21:42:35 UTC
  • mfrom: (480.2.1 xb20-partial)
  • Revision ID: jenkins@jenkins.percona.com-20130109214235-218pqd6kjvz5fkvf
MergeĀ lp:~sergei.glushchenko/percona-xtrabackup/xb20-partial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
########################################################################
 
2
# Bug #711166: Partitioned tables are not correctly handled by the
 
3
#              --databases and --tables-file options of innobackupex,
 
4
#              and by the --tables option of xtrabackup.
 
5
#              Testcase covers using --tables-file option with MyISAM
 
6
#              database
 
7
########################################################################
 
8
 
 
9
. inc/common.sh
 
10
. inc/ib_part.sh
 
11
 
 
12
start_server
 
13
 
 
14
require_partitioning
 
15
 
 
16
# Create MyISAM partitioned table with some partitions in
 
17
# different location
 
18
ib_part_init $topdir MyISAM
 
19
 
 
20
# Saving the checksum of original table
 
21
checksum_a=`checksum_table test test`
 
22
 
 
23
# Take a backup
 
24
# Only backup of test.test table will be taken
 
25
cat >$topdir/tables <<EOF
 
26
test.test
 
27
EOF
 
28
innobackupex --no-timestamp --tables-file=$topdir/tables $topdir/backup
 
29
innobackupex --apply-log $topdir/backup
 
30
vlog "Backup taken"
 
31
 
 
32
stop_server
 
33
 
 
34
# Restore partial backup
 
35
ib_part_restore $topdir $mysql_datadir
 
36
 
 
37
start_server
 
38
 
 
39
ib_part_assert_checksum $checksum_a