Merge lp:~gaul/percona-xtrabackup/empty-password into lp:percona-xtrabackup/2.1

Proposed by Andrew Gaul
Status: Rejected
Rejected by: Alexey Kopytov
Proposed branch: lp:~gaul/percona-xtrabackup/empty-password
Merge into: lp:percona-xtrabackup/2.1
Diff against target: 12 lines (+1/-1)
1 file modified
innobackupex (+1/-1)
To merge this branch: bzr merge lp:~gaul/percona-xtrabackup/empty-password
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Needs Resubmitting
Review via email: mp+118019@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Andrew,

My only concern is that this change will make _all_ options accept empty arguments, even if those where the argument is required.

It looks like the following change is what you actually want?

=== modified file 'innobackupex'
--- innobackupex 2012-06-18 12:32:21 +0000
+++ innobackupex 2012-08-03 10:29:11 +0000
@@ -1721,7 +1721,7 @@ sub check_args {
                         'use-memory=s' => \$option_use_memory,
                         'uncompress' => \$option_uncompress,
                         'export' => \$option_export,
- 'password=s' => \$option_mysql_password,
+ 'password:s' => \$option_mysql_password,
                         'user=s' => \$option_mysql_user,
                         'host=s' => \$option_mysql_host,
                         'port=s' => \$option_mysql_port,

review: Needs Information
Revision history for this message
Andrew Gaul (gaul) wrote :

I agree that your approach addresses my need more directly. I am unfamiliar with Perl and Getopt::Long and did not now about :s. Abandoning this commit.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Thanks for confirming, I have reported https://bugs.launchpad.net/percona-xtrabackup/+bug/1032667.

Feel free to resubmit the patch I suggested as a separate MP.

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'innobackupex'
2--- innobackupex 2012-06-18 14:00:00 +0000
3+++ innobackupex 2012-08-03 00:08:20 +0000
4@@ -7,7 +7,7 @@
5 #
6
7 use strict;
8-use Getopt::Long;
9+use Getopt::Long qw(:config gnu_compat);
10 use File::Spec;
11 use Pod::Usage qw(pod2usage);
12 use POSIX "strftime";

Subscribers

People subscribed via source and target branches