summaryrefslogtreecommitdiff
path: root/scripts/mysqldumpslow.sh
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-10-14 15:52:52 -0400
committerChad MILLER <chad@mysql.com>2008-10-14 15:52:52 -0400
commit77fec0b2190fa8c948d9667e3952e663decc1f78 (patch)
tree170275e2987c63a693edd515d312699ca771f692 /scripts/mysqldumpslow.sh
parentc7866ece4d3795d5ecc5dd481e75d0ed776fb36a (diff)
downloadmariadb-git-77fec0b2190fa8c948d9667e3952e663decc1f78.tar.gz
In mysqldumpslow, consume arbitrary whitespace in the Query_time line.
Diffstat (limited to 'scripts/mysqldumpslow.sh')
-rw-r--r--scripts/mysqldumpslow.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqldumpslow.sh b/scripts/mysqldumpslow.sh
index 2d59b470331..60d972e1c8b 100644
--- a/scripts/mysqldumpslow.sh
+++ b/scripts/mysqldumpslow.sh
@@ -83,7 +83,7 @@ while ( defined($_ = shift @pending) or defined($_ = <>) ) {
s/^#? Time: \d{6}\s+\d+:\d+:\d+.*\n//;
my ($user,$host) = s/^#? User\@Host:\s+(\S+)\s+\@\s+(\S+).*\n// ? ($1,$2) : ('','');
- s/^# Query_time: ([0-9.]+) Lock_time: ([0-9.]+) Rows_sent: ([0-9.]+).*\n//;
+ s/^# Query_time: ([0-9.]+)\s+Lock_time: ([0-9.]+)\s+Rows_sent: ([0-9.]+).*\n//;
my ($t, $l, $r) = ($1, $2, $3);
$t -= $l unless $opt{l};