Skip to content

Commit 5653056

Browse files
lewart03jmrenouard
authored andcommitted
perltidy mysqltuner.pl
1 parent 290b646 commit 5653056

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

mysqltuner.pl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2982,7 +2982,7 @@ sub log_file_recommendations {
29822982
}
29832983

29842984
# Try to find logs from docker/podman if file doesn't exist locally
2985-
elsif (!-f "$myvar{'log_error'}"
2985+
elsif ( !-f "$myvar{'log_error'}"
29862986
&& $myvar{'log_error'} !~ /^(docker|podman|kubectl|systemd):/
29872987
&& !is_docker() )
29882988
{
@@ -7951,7 +7951,7 @@ sub mariadb_xtradb {
79517951
infoprint "XtraDB is enabled.";
79527952
infoprint "Note that MariaDB 10.2 makes use of InnoDB, not XtraDB."
79537953

7954-
# Not implemented
7954+
# Not implemented
79557955
}
79567956

79577957
# Recommendations for RocksDB
@@ -9297,7 +9297,7 @@ sub mysql_innodb {
92979297
infoprint
92989298
"innodb_buffer_pool_chunk_size is set to 'autosize' (0) in MariaDB >= 10.8. Skipping chunk size checks.";
92999299
}
9300-
elsif (!defined( $myvar{'innodb_buffer_pool_chunk_size'} )
9300+
elsif ( !defined( $myvar{'innodb_buffer_pool_chunk_size'} )
93019301
|| $myvar{'innodb_buffer_pool_chunk_size'} == 0
93029302
|| !defined( $myvar{'innodb_buffer_pool_size'} )
93039303
|| $myvar{'innodb_buffer_pool_size'} == 0
@@ -10876,15 +10876,17 @@ sub dump_result {
1087610876
}
1087710877

1087810878
my $json = JSON->new->allow_nonref;
10879-
print $json->utf8(1)->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
10879+
print $json->utf8(1)
10880+
->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
1088010881
->encode( \%result );
1088110882

1088210883
if ( $opt{'outputfile'} ne 0 ) {
1088310884
unlink $opt{'outputfile'} if ( -e $opt{'outputfile'} );
1088410885
open my $fh, q(>), $opt{'outputfile'}
1088510886
or die
1088610887
"Unable to open $opt{'outputfile'} in write mode. please check permissions for this file or directory";
10887-
print $fh $json->utf8(1)->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
10888+
print $fh $json->utf8(1)
10889+
->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
1088810890
->encode( \%result );
1088910891
close $fh;
1089010892
}

0 commit comments

Comments
 (0)