Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 4a7bf58

Browse files
author
Brice Figureau
committed
Be more resistant to some undefined innodb entries
1 parent ca9c278 commit 4a7bf58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mysql-snmp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,10 @@ sub fetch_mysql_data {
801801
$status{$key} = $out->{$key};
802802
}
803803

804-
$status{'unflushed_log'} = max($status{'unflushed_log'}, $status{'innodb_log_buffer_size'});
804+
if (defined($status{'unflushed_log'})) {
805+
# it seems that unflushed_log is sometimes not defined...
806+
$status{'unflushed_log'} = max($status{'unflushed_log'}, $status{'innodb_log_buffer_size'});
807+
}
805808
}
806809

807810

0 commit comments

Comments
 (0)