mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
14
t/pt-archiver/samples/Plugin7.pm
Normal file
14
t/pt-archiver/samples/Plugin7.pm
Normal file
@@ -0,0 +1,14 @@
|
||||
package Plugin7;
|
||||
|
||||
sub new {
|
||||
my ( $class, %args ) = @_;
|
||||
return bless(\%args, $class);
|
||||
}
|
||||
|
||||
sub statistics {
|
||||
my ( $self, $stats, $start ) = @_;
|
||||
$self->{src}->{dbh}->do(
|
||||
"insert into test.stat_test(a) values($stats->{DELETE})");
|
||||
}
|
||||
|
||||
1;
|
Reference in New Issue
Block a user