mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 02:34:19 +00:00
Extra tweaks due to feedback from kaiwangchen: ; starts comments if at the start of a line
This commit is contained in:
@@ -310,7 +310,7 @@ sub parse_option_file {
|
||||
# Parse the "var=val" lines.
|
||||
my ($config, $dupes) = _parse_varvals(
|
||||
map { $_ =~ m/^([^=]+)(?:=(.*))?$/ }
|
||||
grep { $_ !~ m/^\s*#/ } # no # comment lines
|
||||
grep { $_ !~ m/^\s*[#;]/ } # no # comment lines
|
||||
split("\n", $mysqld_section)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user