Skip to content

Commit 8a18407

Browse files
committed
fix: Corrected dumpdir variable usage and updated version to 2.7.1.
1 parent 5586cca commit 8a18407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mysqltuner.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ package main;
5959
my $is_win = $^O eq 'MSWin32';
6060

6161
# Set up a few variables for use in the script
62-
my $tunerversion = "2.7.0";
62+
my $tunerversion = "2.7.1";
6363
my ( @adjvars, @generalrec );
6464

6565
# Set defaults
@@ -2923,7 +2923,7 @@ sub check_storage_engines {
29232923
"SELECT TABLE_SCHEMA, TABLE_NAME, ENGINE, CAST(DATA_FREE AS SIGNED) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql') AND DATA_LENGTH/1024/1024>100 AND cast(DATA_FREE as signed)*100/(DATA_LENGTH+INDEX_LENGTH+cast(DATA_FREE as signed)) > 10 AND NOT ENGINE='MEMORY' $not_innodb"
29242924
];
29252925
$fragtables = scalar @{ $result{'Tables'}{'Fragmented tables'} };
2926-
if ($dumpdir -ne '') {
2926+
if ($opt{dumpdir} ne '') {
29272927
select_csv_file(
29282928
"$opt{dumpdir}/fragmented_tables.csv",
29292929
"SELECT TABLE_SCHEMA, TABLE_NAME, ENGINE, CAST(DATA_FREE AS SIGNED) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql') AND DATA_LENGTH/1024/1024>100 AND cast(DATA_FREE as signed)*100/(DATA_LENGTH+INDEX_LENGTH+cast(DATA_FREE as signed)) > 10 AND NOT ENGINE='MEMORY' $not_innodb"
@@ -7932,7 +7932,7 @@ sub dump_csv_files {
79327932
79337933
=head1 NAME
79347934
7935-
MySQLTuner 2.7.0 - MySQL High Performance Tuning Script
7935+
MySQLTuner 2.7.1 - MySQL High Performance Tuning Script
79367936
79377937
=head1 IMPORTANT USAGE GUIDELINES
79387938

0 commit comments

Comments
 (0)