~hrvojem/percona-xtrabackup/rn-2.1.0-ga

« back to all changes in this revision

Viewing changes to test/t/compact.sh

  • Committer: Alexey Kopytov
  • Date: 2013-05-07 08:12:22 UTC
  • mfrom: (583.4.1 2.1)
  • Revision ID: akopytov@gmail.com-20130507081222-y1ne3vxo0eb1gkkx
MergedĀ lp:~akopytov/percona-xtrabackup/parallel-table-rebuild.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
verify_db_state sakila
34
34
 
 
35
##########################################################################
 
36
# Test --rebuild-threads
 
37
##########################################################################
 
38
 
 
39
rm -rf $backup_dir
 
40
 
 
41
innobackupex --no-timestamp --compact $backup_dir
 
42
vlog "Backup created in directory $backup_dir"
 
43
 
 
44
record_db_state sakila
 
45
 
 
46
stop_server
 
47
 
 
48
# Remove datadir
 
49
rm -r $mysql_datadir
 
50
 
 
51
# Restore sakila
 
52
 
 
53
innobackupex --apply-log --rebuild-indexes --rebuild-threads=16 $backup_dir
 
54
 
 
55
grep -q "Starting 16 threads to rebuild indexes" $OUTFILE
 
56
 
 
57
vlog "Restoring MySQL datadir"
 
58
mkdir -p $mysql_datadir
 
59
innobackupex --copy-back $backup_dir
 
60
 
 
61
start_server
 
62
 
 
63
verify_db_state sakila