mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Add regex to detect the empty line that end the variable list.
Some variable names in 5.1 is soo long that there is no space inbetween name and value. Outputing a warning about it, as that should probably be fixed. At least one space should be put between the name and value.
This commit is contained in:
@ -1189,9 +1189,19 @@ sub check_mysqld_features () {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
# The variable list is ended with a blank line, so when a line
|
# The variable list is ended with a blank line
|
||||||
# doesn't match the above regex, break the loop
|
if ( $line =~ /^[\s]*$/ )
|
||||||
last;
|
{
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
# Send out a warning, we should fix the variables that has no
|
||||||
|
# space between variable name and it's value
|
||||||
|
# or should it be fixed width column parsing? It does not
|
||||||
|
# look like that in function my_print_variables in my_getopt.c
|
||||||
|
mtr_warning("Could not parse variable list line : $line");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user