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

Proposed by Alexey Kopytov
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 527
Proposed branch: lp:~akopytov/percona-xtrabackup/bug1116177-2.1
Merge into: lp:percona-xtrabackup/2.1
Diff against target: 48 lines (+8/-6)
1 file modified
innobackupex (+8/-6)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/bug1116177-2.1
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Registry Administrators Pending
Review via email: mp+155166@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.1-param/234/

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-11 19:11:29 +0000
3+++ innobackupex 2013-03-25 05:26:32 +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@@ -773,7 +774,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@@ -1211,8 +1212,9 @@
22 parse_connection_options(\%con);
23
24 $now = current_time();
25- print STDERR "$now $prefix Connecting to MySQL server with DSN '" .
26- $con{dsn} . "' as '" . $con{dsn_user} . "' (using password: ";
27+ print STDERR "$now $prefix Connecting to MySQL server with DSN '$con{dsn}'" .
28+ (defined($con{dsn_user}) ? " as '$con{dsn_user}' " : "") .
29+ " (using password: ";
30 if (defined($con{dsn_password})) {
31 print STDERR "YES).\n";
32 } else {
33@@ -1863,12 +1865,12 @@
34 $option_backup = "1";
35 $backup_root = $ARGV[0];
36 if ($option_incremental && !$option_incremental_lsn) {
37- my @dirs = `ls -1 -t $backup_root`;
38- my $inc_dir = $dirs[0];
39- chomp($inc_dir);
40 if ($option_incremental_basedir) {
41 $incremental_basedir = $option_incremental_basedir;
42 } else {
43+ my @dirs = `ls -t $backup_root`;
44+ my $inc_dir = $dirs[0];
45+ chomp($inc_dir);
46 $incremental_basedir = File::Spec->catfile($backup_root, $inc_dir);
47 }
48 }

Subscribers

People subscribed via source and target branches

to all changes: