Merge pull request #538 from grooverdan/json_total_tables

Add total_tables to json output
This commit is contained in:
Jean-Marie Renouard 2021-01-28 18:19:09 +01:00 committed by GitHub
commit 1f879d110b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3254,6 +3254,7 @@ sub mysql_stats {
# Table definition cache
my $nbtables=select_one('SELECT COUNT(*) FROM information_schema.tables');
$mycalc{'total_tables'} = $nbtables;
if ( defined $myvar{'table_definition_cache'} ) {
if ( $myvar{'table_definition_cache'} == -1 ) {
infoprint ("table_definition_cache(".$myvar{'table_definition_cache'} .") is in autosizing mode");