Exclude innodb engine from fragmented tables
This commit is contained in:
parent
9056b1b0fa
commit
8e9cc50311
1 changed files with 2 additions and 2 deletions
|
@ -1776,11 +1776,11 @@ sub check_storage_engines {
|
||||||
$result{'Engine'}{$engine}{'Index Size'} = $isize;
|
$result{'Engine'}{$engine}{'Index Size'} = $isize;
|
||||||
}
|
}
|
||||||
$fragtables = select_one
|
$fragtables = select_one
|
||||||
"SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','performance_schema', 'mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY'";
|
"SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','performance_schema', 'mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY' AND NOT ENGINE='InnoDB'";
|
||||||
chomp($fragtables);
|
chomp($fragtables);
|
||||||
$result{'Tables'}{'Fragmented tables'} =
|
$result{'Tables'}{'Fragmented tables'} =
|
||||||
[ select_array
|
[ select_array
|
||||||
"SELECT CONCAT(CONCAT(TABLE_SCHEMA, '.'), TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','performance_schema', 'mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY'"
|
"SELECT CONCAT(CONCAT(TABLE_SCHEMA, '.'), TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','performance_schema', 'mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY' NOT ENGINE='InnoDB'"
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue