Skip to content

Commit

Permalink
Merge pull request #540 from grooverdan/noinnodb
Browse files Browse the repository at this point in the history
correct messages on no InnoDB
  • Loading branch information
jmrenouard committed Feb 1, 2021
2 parents 950df57 + 5c307d1 commit f93020f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5557,21 +5557,28 @@ sub mysql_innodb {

# InnoDB
unless ( defined $myvar{'have_innodb'}
&& $myvar{'have_innodb'} eq "YES"
&& defined $enginestats{'InnoDB'} )
&& $myvar{'have_innodb'} eq "YES")
{
if ( $opt{skipsize} eq 1 ) {
infoprint "Skipped due to --skipsize option";
return;
}
infoprint "InnoDB is disabled.";
if ( mysql_version_ge( 5, 5 ) ) {
my $defengine = 'InnoDB';
$defengine = $myvar{'default_storage_engine'} if defined($myvar{'default_storage_engine'});
badprint
"InnoDB Storage engine is disabled. InnoDB is the default storage engine";
"InnoDB Storage engine is disabled. $defengine is the default storage engine" if $defengine eq 'InnoDB';
infoprint
"InnoDB Storage engine is disabled. $defengine is the default storage engine" if $defengine ne 'InnoDB';
}
return;
}
infoprint "InnoDB is enabled.";
if (! defined $enginestats{'InnoDB'} ) {
if ( $opt{skipsize} eq 1 ) {
infoprint "Skipped due to --skipsize option";
return;
}
badprint "No tables are Innodb";
$enginestats{'InnoDB'} = 0;
}

if ( $opt{buffers} ne 0 ) {
infoprint "InnoDB Buffers";
Expand Down

0 comments on commit f93020f

Please sign in to comment.