Skip to content

Commit 9deeb01

Browse files
committed
perltidy mysqltuner.pl
1 parent 2c1465c commit 9deeb01

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
@@ -2540,7 +2540,7 @@ sub log_file_recommendations {
25402540
}
25412541

25422542
# Try to find logs from docker/podman if file doesn't exist locally
2543-
elsif (!-f "$myvar{'log_error'}"
2543+
elsif ( !-f "$myvar{'log_error'}"
25442544
&& $myvar{'log_error'} !~ /^(docker|podman|kubectl|systemd):/
25452545
&& !is_docker() )
25462546
{
@@ -7197,7 +7197,7 @@ sub mariadb_xtradb {
71977197
infoprint "XtraDB is enabled.";
71987198
infoprint "Note that MariaDB 10.2 makes use of InnoDB, not XtraDB."
71997199

7200-
# Not implemented
7200+
# Not implemented
72017201
}
72027202

72037203
# Recommendations for RocksDB
@@ -8513,7 +8513,7 @@ sub mysql_innodb {
85138513
infoprint
85148514
"innodb_buffer_pool_chunk_size is set to 'autosize' (0) in MariaDB >= 10.8. Skipping chunk size checks.";
85158515
}
8516-
elsif (!defined( $myvar{'innodb_buffer_pool_chunk_size'} )
8516+
elsif ( !defined( $myvar{'innodb_buffer_pool_chunk_size'} )
85178517
|| $myvar{'innodb_buffer_pool_chunk_size'} == 0
85188518
|| !defined( $myvar{'innodb_buffer_pool_size'} )
85198519
|| $myvar{'innodb_buffer_pool_size'} == 0
@@ -9585,15 +9585,17 @@ sub dump_result {
95859585
}
95869586

95879587
my $json = JSON->new->allow_nonref;
9588-
print $json->utf8(1)->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
9588+
print $json->utf8(1)
9589+
->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
95899590
->encode( \%result );
95909591

95919592
if ( $opt{'outputfile'} ne 0 ) {
95929593
unlink $opt{'outputfile'} if ( -e $opt{'outputfile'} );
95939594
open my $fh, q(>), $opt{'outputfile'}
95949595
or die
95959596
"Unable to open $opt{'outputfile'} in write mode. please check permissions for this file or directory";
9596-
print $fh $json->utf8(1)->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
9597+
print $fh $json->utf8(1)
9598+
->pretty( ( $opt{'prettyjson'} ? 1 : 0 ) )
95979599
->encode( \%result );
95989600
close $fh;
95999601
}

0 commit comments

Comments
 (0)