aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2007-04-01 08:49:24 +0800
committerleeym <leeym@FreeBSD.org>2007-04-01 08:49:24 +0800
commita0358b44f1a0a9b7d5ace7c2718d5baebd77b5cd (patch)
treec392bd1ce161edc61015cdcd41970e706bdf4fa6 /databases
parent45deb4f071b7360204814f512a52c5fc534f8551 (diff)
downloadfreebsd-ports-gnome-a0358b44f1a0a9b7d5ace7c2718d5baebd77b5cd.tar.gz
freebsd-ports-gnome-a0358b44f1a0a9b7d5ace7c2718d5baebd77b5cd.tar.zst
freebsd-ports-gnome-a0358b44f1a0a9b7d5ace7c2718d5baebd77b5cd.zip
- apply new integrated patch
- bump PORTREVISION Submitted by: Lubomir Host <rajo at platon.sk>
Diffstat (limited to 'databases')
-rw-r--r--databases/mytop/Makefile2
-rw-r--r--databases/mytop/files/patch-innodb-status13
-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-mode11
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;
- }
-