diff options
author | unknown <mtaylor@qualinost.(none)> | 2006-12-18 21:26:12 -0800 |
---|---|---|
committer | unknown <mtaylor@qualinost.(none)> | 2006-12-18 21:26:12 -0800 |
commit | 07a4a6a967befbca682c34145fb6e096367703eb (patch) | |
tree | 950d93aeb09633fc45c42ad14ba6dc81e9eff91d /scripts | |
parent | 7788b06a00c1f15ca0d2ba2d41012802d6f6e5c6 (diff) | |
parent | 5fdbd481b01b553c7699abfc708b7cca2294f092 (diff) | |
download | mariadb-git-07a4a6a967befbca682c34145fb6e096367703eb.tar.gz |
Merge qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
into qualinost.(none):/home/mtaylor/src/mysql-5.1-maint
mysys/typelib.c:
Auto merged
sql/field.cc:
Auto merged
sql/field.h:
Auto merged
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysqldumpslow.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/mysqldumpslow.sh b/scripts/mysqldumpslow.sh index ccb006f692d..ff82a35ec3f 100644 --- a/scripts/mysqldumpslow.sh +++ b/scripts/mysqldumpslow.sh @@ -40,6 +40,7 @@ unless (@ARGV) { warn "basedir=$basedir\n" if $opt{v}; my $datadir = ($defaults =~ m/--datadir=(.*)/)[0]; + my $slowlog = ($defaults =~ m/--log-slow-queries=(.*)/)[0]; if (!$datadir or $opt{i}) { # determine the datadir from the instances section of /etc/my.cnf, if any my $instances = `my_print_defaults instances`; @@ -55,8 +56,13 @@ unless (@ARGV) { warn "datadir=$datadir\n" if $opt{v}; } - @ARGV = <$datadir/$opt{h}-slow.log>; - die "Can't find '$datadir/$opt{h}-slow.log'\n" unless @ARGV; + if ( -f $slowlog ) { + @ARGV = ($slowlog); + die "Can't find '$slowlog'\n" unless @ARGV; + } else { + @ARGV = <$datadir/$opt{h}-slow.log>; + die "Can't find '$datadir/$opt{h}-slow.log'\n" unless @ARGV; + } } warn "\nReading mysql slow query log from @ARGV\n"; |