Merge lp:~akopytov/percona-xtrabackup/bug1322658-2.2 into lp:percona-xtrabackup/2.2

Proposed by Alexey Kopytov
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 4987
Proposed branch: lp:~akopytov/percona-xtrabackup/bug1322658-2.2
Merge into: lp:percona-xtrabackup/2.2
Diff against target: 49 lines (+13/-1)
2 files modified
storage/innobase/xtrabackup/innobackupex.pl (+11/-0)
storage/innobase/xtrabackup/test/t/remote_tablespaces.sh (+2/-1)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/bug1322658-2.2
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+227684@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'storage/innobase/xtrabackup/innobackupex.pl'
--- storage/innobase/xtrabackup/innobackupex.pl 2014-06-10 13:53:29 +0000
+++ storage/innobase/xtrabackup/innobackupex.pl 2014-07-22 08:59:28 +0000
@@ -19,6 +19,7 @@
19use File::Temp;19use File::Temp;
20use File::Find;20use File::Find;
21use File::Copy;21use File::Copy;
22use File::Path;
22use English qw(-no_match_vars);23use English qw(-no_match_vars);
23use Time::HiRes qw(usleep);24use Time::HiRes qw(usleep);
2425
@@ -2233,6 +2234,16 @@
2233 file_to_array($isl_path, \@lines);2234 file_to_array($isl_path, \@lines);
2234 $dst_path = $lines[0];2235 $dst_path = $lines[0];
2235 print STDERR "Using $dst_path as the destination path\n";2236 print STDERR "Using $dst_path as the destination path\n";
2237
2238 my $dst_dir = File::Basename::dirname($dst_path);
2239 if (! -d $dst_dir) {
2240 print STDERR "Recursively creating directory $dst_dir\n";
2241
2242 eval { mkpath($dst_dir) };
2243 if ($@) {
2244 die "Could not create directory $dst_dir: $@";
2245 }
2246 }
2236 }2247 }
2237 }2248 }
22382249
22392250
=== modified file 'storage/innobase/xtrabackup/test/t/remote_tablespaces.sh'
--- storage/innobase/xtrabackup/test/t/remote_tablespaces.sh 2013-07-25 15:04:49 +0000
+++ storage/innobase/xtrabackup/test/t/remote_tablespaces.sh 2014-07-22 08:59:28 +0000
@@ -8,7 +8,7 @@
88
9start_server --innodb_file_per_table9start_server --innodb_file_per_table
1010
11remote_dir=$TEST_VAR_ROOT/var1/remote_dir11remote_dir=$TEST_VAR_ROOT/var1/remote_dir/subdir
1212
13$MYSQL $MYSQL_ARGS test <<EOF13$MYSQL $MYSQL_ARGS test <<EOF
14CREATE TABLE t(id INT AUTO_INCREMENT PRIMARY KEY, c INT)14CREATE TABLE t(id INT AUTO_INCREMENT PRIMARY KEY, c INT)
@@ -31,6 +31,7 @@
31stop_server31stop_server
3232
33rm -rf $mysql_datadir/*33rm -rf $mysql_datadir/*
34rm -rf $remote_dir
3435
35innobackupex --apply-log $topdir/backup36innobackupex --apply-log $topdir/backup
36innobackupex --copy-back $topdir/backup37innobackupex --copy-back $topdir/backup

Subscribers

People subscribed via source and target branches

to all changes: