Don't crash if file wasn't read

This commit is contained in:
Jamie Cameron
2023-01-29 19:41:16 -08:00
parent 5cb837446f
commit 021247d98d
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ foreach $w (@mysql_number_variables, @mysql_byte_variables) {
# Write out file
foreach my $l (&get_all_mysqld_files()) {
&flush_file_lines($l);
&flush_file_lines($l, undef, 1);
&unlock_file($l);
}
if ($in{'restart'} && &is_mysql_running() > 0) {

View File

@ -64,7 +64,7 @@ else {
# Write out file
foreach my $l (&get_all_mysqld_files()) {
&flush_file_lines($l);
&flush_file_lines($l, undef, 1);
&unlock_file($l);
}
if (($in{'restart'} || $in{'gen'}) && &is_mysql_running() > 0) {