@@ -1560,7 +1560,8 @@ sub check_storage_engines {
1560
1560
: redwrap " -NDBCluster " ;
1561
1561
}
1562
1562
1563
- my @dblist = select_array " SHOW DATABASES" ;
1563
+ my @dblist = grep {$_ ne ' lost+found' } select_array " SHOW DATABASES" ;
1564
+
1564
1565
$result {' Databases' }{' List' } = [@dblist ];
1565
1566
infoprint " Status: $engines " ;
1566
1567
if ( mysql_version_ge( 5, 1, 5 ) ) {
@@ -1595,7 +1596,7 @@ sub check_storage_engines {
1595
1596
# MySQL < 5 servers take a lot of work to get table sizes
1596
1597
my @tblist ;
1597
1598
1598
- # Now we build a database list, and loop through it to get storage engine stats for tables
1599
+ # Now we build a database list, and loop through it to get storage engine stats for tables
1599
1600
foreach my $db (@dblist ) {
1600
1601
chomp ($db );
1601
1602
if ( $db eq " information_schema"
@@ -1621,6 +1622,7 @@ sub check_storage_engines {
1621
1622
foreach my $tbl (@tblist ) {
1622
1623
debugprint " Data dump " . Dumper (@$tbl );
1623
1624
my ( $engine , $size , $datafree ) = @$tbl ;
1625
+ next if $engine eq ' NULL' ;
1624
1626
$size =0 if $size eq ' NULL' ;
1625
1627
$datafree =0 if $datafree eq ' NULL' ;
1626
1628
if ( defined $enginestats {$engine } ) {
@@ -3553,4 +3555,4 @@ =head1 COPYRIGHT AND LICENSE
3553
3555
# indent-tabs-mode: t
3554
3556
# cperl-indent-level: 8
3555
3557
# perl-indent-level: 8
3556
- # End:
3558
+ # End:
0 commit comments