fix check innodb_file_per_table with skip-innodb

This commit is contained in:
Sergei A Mamonov 2016-12-12 14:19:49 +03:00
parent 7f02c8655c
commit 1b04540a4c

View file

@ -1991,7 +1991,9 @@ sub check_storage_engines {
$result{'Engine'}{$engine}{'Index Size'} = $isize;
}
my $not_innodb = '';
if ( $result{'Variables'}{'innodb_file_per_table'} eq 'OFF' ) {
if ( not defined $result{'Variables'}{'innodb_file_per_table'} ) {
$not_innodb = "AND NOT ENGINE='InnoDB'";
} elsif ( $result{'Variables'}{'innodb_file_per_table'} eq 'OFF' ) {
$not_innodb = "AND NOT ENGINE='InnoDB'";
}
$result{'Tables'}{'Fragmented tables'} =