Shifting InnoDB log waits block up into the have_innodb block.
This should prevent any attempt to access an undefined Innodb_log_waits value. resolves #42
This commit is contained in:
parent
dbcb8178ed
commit
a07f7a16e3
1 changed files with 6 additions and 6 deletions
|
@ -961,7 +961,6 @@ sub mysql_stats {
|
|||
badprint "InnoDB buffer pool / data size: ".hr_bytes($myvar{'innodb_buffer_pool_size'})."/".hr_bytes($enginestats{'InnoDB'})."\n";
|
||||
push(@adjvars,"innodb_buffer_pool_size (>= ".hr_bytes_rnd($enginestats{'InnoDB'}).")");
|
||||
}
|
||||
}
|
||||
if (defined $mystat{'Innodb_log_waits'} && $mystat{'Innodb_log_waits'} > 0) {
|
||||
badprint "InnoDB log waits: ".$mystat{'Innodb_log_waits'};
|
||||
push(@adjvars,"innodb_log_buffer_size (>= ".hr_bytes_rnd($myvar{'innodb_log_buffer_size'}).")");
|
||||
|
@ -969,6 +968,7 @@ sub mysql_stats {
|
|||
goodprint "InnoDB log waits: ".$mystat{'Innodb_log_waits'};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Take the two recommendation arrays and display them at the end of the output
|
||||
sub make_recommendations {
|
||||
|
|
Loading…
Reference in a new issue