diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2007-04-01 00:49:24 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2007-04-01 00:49:24 +0000 |
commit | 0c7ea5ed47f3241d30c80e9f4aa4f324467487a6 (patch) | |
tree | 0d0558ccd89cb45b3ea13912dddbad1e5b45aac7 /databases | |
parent | Update to 1.2.3. (diff) |
- apply new integrated patch
- bump PORTREVISION
Submitted by: Lubomir Host <rajo at platon.sk>
Notes
Notes:
svn path=/head/; revision=188906
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mytop/Makefile | 2 | ||||
-rw-r--r-- | databases/mytop/files/patch-innodb-status | 13 | ||||
-rw-r--r-- | databases/mytop/files/patch-mytop (renamed from databases/mytop/files/patch-show-slave-status) | 40 | ||||
-rw-r--r-- | databases/mytop/files/patch-qps-mode | 11 |
4 files changed, 37 insertions, 29 deletions
diff --git a/databases/mytop/Makefile b/databases/mytop/Makefile index 2d7c868bca41..bac1096dc503 100644 --- a/databases/mytop/Makefile +++ b/databases/mytop/Makefile @@ -7,7 +7,7 @@ PORTNAME= mytop PORTVERSION= 1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= http://jeremy.zawodny.com/mysql/mytop/ diff --git a/databases/mytop/files/patch-innodb-status b/databases/mytop/files/patch-innodb-status deleted file mode 100644 index c6f53242ec5d..000000000000 --- a/databases/mytop/files/patch-innodb-status +++ /dev/null @@ -1,13 +0,0 @@ ---- mytop-1.6.orig 2007-03-30 00:52:47.581910821 +0200 -+++ mytop 2007-03-30 00:52:52.234067036 +0200 -@@ -1099,8 +1099,8 @@ - my @data = Hashes("SHOW INNODB STATUS"); - - open P, "|$config{pager}" or die "$!"; -- print keys %{$data[0]}; -- print $data[0]->{Status},"\n"; -+ print P keys %{$data[0]}; -+ print P $data[0]->{Status},"\n"; - close P; - } - diff --git a/databases/mytop/files/patch-show-slave-status b/databases/mytop/files/patch-mytop index 834c16c1dd76..39f59c10219f 100644 --- a/databases/mytop/files/patch-show-slave-status +++ b/databases/mytop/files/patch-mytop @@ -1,5 +1,5 @@ ---- mytop-1.6.orig 2007-03-30 00:52:47.581910821 +0200 -+++ mytop 2007-03-30 02:19:05.114300408 +0200 +--- mytop.orig Sun Apr 1 08:26:56 2007 ++++ mytop Sun Apr 1 08:27:00 2007 @@ -369,6 +369,10 @@ require Data::Dumper; print Data::Dumper::Dumper([\%config]); @@ -11,17 +11,38 @@ } ## m - mode swtich to qps -@@ -889,8 +893,30 @@ +@@ -377,7 +381,7 @@ + { + $config{mode} = 'qps'; + Clear() unless $config{batchmode}; +- print "Queries Per Second [hit q to exit this mode]\n"; ++ print "Queries Per Second [hit q to exit, hit t for top mode]\n"; + next; + } + +@@ -889,8 +893,42 @@ make_short(($STATUS{Bytes_received} - $OLD_STATUS{Bytes_received}) / $t_delta ), make_short(($STATUS{Bytes_sent} - $OLD_STATUS{Bytes_sent}) / $t_delta )) if ($t_delta); - print "\n\n"; + print "\n"; + ++ my @master_status = Hashes("show master status"); ++ if (@master_status) ++ { ++ foreach my $m (@master_status) { ++ print " Master: $m->{File}/$m->{Position} ", ++ "do: ", GREEN(), "$m->{Binlog_Do_DB} ", RESET(), ++ "ign: ", MAGENTA(), $m->{Binlog_Ignore_DB}, RESET(), "\n"; ++ #$line_prefix = ' ' x length($line_prefix); ++ $lines_left--; ++ } ++ } ++ + my @slave_status = Hashes("show slave status"); + if (@slave_status) + { -+ my $line_prefix = " Slave: "; ++ my $line_prefix = " Slave: "; + foreach my $s (@slave_status) { + print $line_prefix, BOLD(), + ($s->{Slave_IO_Running} eq 'Yes' @@ -43,3 +64,14 @@ $lines_left--; } +@@ -1099,8 +1137,8 @@ + my @data = Hashes("SHOW INNODB STATUS"); + + open P, "|$config{pager}" or die "$!"; +- print keys %{$data[0]}; +- print $data[0]->{Status},"\n"; ++ print P keys %{$data[0]}; ++ print P $data[0]->{Status},"\n"; + close P; + } + diff --git a/databases/mytop/files/patch-qps-mode b/databases/mytop/files/patch-qps-mode deleted file mode 100644 index edc5c2abf979..000000000000 --- a/databases/mytop/files/patch-qps-mode +++ /dev/null @@ -1,11 +0,0 @@ ---- mytop-1.6.orig 2007-03-30 00:52:47.581910821 +0200 -+++ mytop 2007-03-30 00:59:04.174550184 +0200 -@@ -377,7 +377,7 @@ - { - $config{mode} = 'qps'; - Clear() unless $config{batchmode}; -- print "Queries Per Second [hit q to exit this mode]\n"; -+ print "Queries Per Second [hit q to exit, hit t for top mode]\n"; - next; - } - |