Merge lp:~akopytov/percona-xtrabackup/bug1116177-2.0 into lp:percona-xtrabackup/2.0

Proposed by Alexey Kopytov
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 524
Proposed branch: lp:~akopytov/percona-xtrabackup/bug1116177-2.0
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 43 lines (+5/-7)
1 file modified
innobackupex (+5/-7)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/bug1116177-2.0
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Registry Administrators Pending
Review via email: mp+155165@code.launchpad.net

Description of the change

  Bug #1116177: Fix warnings reported by "use warnings FATAL => 'all'"

  Fixed a couple of warnings found with "use warnings FATAL => 'all'".

http://jenkins.percona.com/view/XtraBackup/job/percona-xtrabackup-2.0-param/383/

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'innobackupex'
2--- innobackupex 2013-03-13 05:05:16 +0000
3+++ innobackupex 2013-03-25 05:25:25 +0000
4@@ -7,6 +7,7 @@
5 # All Rights Reserved.
6 #
7
8+use warnings FATAL => 'all';
9 use strict;
10 use Getopt::Long;
11 use File::Spec;
12@@ -807,7 +808,7 @@
13 print STDERR "$prefix in '$backup_dir'\n";
14 print STDERR "$prefix back to original InnoDB log directory '$orig_iblog_dir'\n";
15 while (defined($file = readdir(DIR))) {
16- if ($file =~ /'^' . $iblog_files . '$'/ && -f "$backup_dir/$file") {
17+ if ($file =~ /^$iblog_files$/ && -f "$backup_dir/$file") {
18 $src_name = escape_path("$backup_dir/$file");
19 $dst_name = escape_path("$orig_iblog_dir");
20 &$move_or_copy_file($src_name, $dst_name);
21@@ -1968,19 +1969,16 @@
22 exit(1);
23 }
24
25- # get options file name
26- #$config_file = $ARGV[0];
27-
28 if (!$option_apply_log && !$option_copy_back && !$option_move_back) {
29 # we are making a backup, get backup root directory
30 $backup_root = $ARGV[0];
31 if ($option_incremental && !$option_incremental_lsn) {
32- my @dirs = `ls -1 -t $backup_root`;
33- my $inc_dir = $dirs[0];
34- chomp($inc_dir);
35 if ($option_incremental_basedir) {
36 $incremental_basedir = $option_incremental_basedir;
37 } else {
38+ my @dirs = `ls -t $backup_root`;
39+ my $inc_dir = $dirs[0];
40+ chomp($inc_dir);
41 $incremental_basedir = File::Spec->catfile($backup_root, $inc_dir);
42 }
43 }

Subscribers

People subscribed via source and target branches