Skip to content

Commit

Permalink
fix parsing file io for MySQL 5.5
Browse files Browse the repository at this point in the history
In MySQL 5.5 the innodb status shows additionally aio reads and aio writes for
each thread in square brackets.
  • Loading branch information
Christian Loos committed Jan 24, 2014
1 parent 250963a commit 14039da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/node.d/mysql_.in
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ sub parse_transactions {
sub parse_file_io {
parse_section(
sub {
m/\GPending normal aio reads: (\d+), aio writes: (\d+),\n\s*ibuf aio reads: (\d+), log i\/o's: (\d+), sync i\/o's: (\d+)\n/gc && do {
m/\GPending normal aio reads: (\d+)(?: \[(?:\d+, )*\d+\] )?, aio writes: (\d+)(?: \[(?:\d+, )*\d+\] )?,\n\s*ibuf aio reads: (\d+), log i\/o's: (\d+), sync i\/o's: (\d+)\n/gc && do {
$data->{ib_iop_aioread} = $1;
$data->{ib_iop_aiowrite} = $2;
$data->{ib_iop_ibuf_aio} = $3;
Expand Down

0 comments on commit 14039da

Please sign in to comment.