mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 21:05:00 +00:00
Bug 1007938: MySQLConfig doesn't support end-of-line comments
Patch provided by Kaiwang CHEN (~kaiwang-chen) on Launchpad.
This commit is contained in:
@@ -337,8 +337,9 @@ sub _parse_varvals {
|
||||
ITEM:
|
||||
foreach my $item ( @varvals ) {
|
||||
if ( $item ) {
|
||||
# Strip leading and trailing whitespace.
|
||||
# Strip leading and trailing whitespace, and trailing comments.
|
||||
$item =~ s/^\s+//;
|
||||
$item =~ s/[#;].*$//;
|
||||
$item =~ s/\s+$//;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user