Merge lp:~sergei.glushchenko/percona-xtrabackup/bug983685-xb1.6 into lp:percona-xtrabackup/1.6

Proposed by Sergei Glushchenko
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 338
Proposed branch: lp:~sergei.glushchenko/percona-xtrabackup/bug983685-xb1.6
Merge into: lp:percona-xtrabackup/1.6
Diff against target: 54 lines (+31/-1)
2 files modified
innobackupex (+3/-1)
test/t/bug983685.sh (+28/-0)
To merge this branch: bzr merge lp:~sergei.glushchenko/percona-xtrabackup/bug983685-xb1.6
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+102287@code.launchpad.net

Description of the change

Bug 983685: innodb_data_file_path is not written to backup-my.cnf
Regression introduced by fix for bug #733651.
Along with innodb_data_file_path, innodb_log_group_home_dir is also missed.

To post a comment you must log in.
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Approved. But in future, please avoid this ugly hack with grepping the log to figure out backup directory. You can just use --no-timestamp, in which case $topdir/backup will be the backup directory.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'innobackupex'
--- innobackupex 2012-03-27 01:07:43 +0000
+++ innobackupex 2012-04-17 12:48:19 +0000
@@ -1615,6 +1615,7 @@
1615 }1615 }
16161616
1617 my @option_names = (1617 my @option_names = (
1618 "innodb_data_file_path",
1618 "innodb_log_files_in_group",1619 "innodb_log_files_in_group",
1619 "innodb_log_file_size",1620 "innodb_log_file_size",
1620 "innodb_fast_checksum",1621 "innodb_fast_checksum",
@@ -1626,7 +1627,8 @@
1626 "# The MySQL server\n" .1627 "# The MySQL server\n" .
1627 "[mysqld]\n" .1628 "[mysqld]\n" .
1628 "datadir=$root\n" .1629 "datadir=$root\n" .
1629 "innodb_data_home_dir=$root\n";1630 "innodb_data_home_dir=$root\n" .
1631 "innodb_log_group_home_dir=$root\n";
16301632
1631 my $option_name;1633 my $option_name;
1632 foreach $option_name (@option_names) {1634 foreach $option_name (@option_names) {
16331635
=== added file 'test/t/bug983685.sh'
--- test/t/bug983685.sh 1970-01-01 00:00:00 +0000
+++ test/t/bug983685.sh 2012-04-17 12:48:19 +0000
@@ -0,0 +1,28 @@
1########################################################################
2# Bug #983685: innodb_data_file_path is not written to backup-my.cnf
3########################################################################
4
5. inc/common.sh
6
7init
8
9options="innodb_data_file_path innodb_log_group_home_dir"
10
11run_mysqld
12
13mkdir -p $topdir/backup
14innobackupex $topdir/backup
15backup_dir=`grep "innobackupex: Backup created in directory" $OUTFILE | awk -F\' '{ print $2}'`
16vlog "Backup created in directory $backup_dir"
17
18# test presence of options
19for option in $options ; do
20
21 if ! grep $option $backup_dir/backup-my.cnf ; then
22 vlog "Option $option is absent"
23 exit -1
24 else
25 vlog "Option $option is present"
26 fi
27
28done

Subscribers

People subscribed via source and target branches