File: all_hooks.pm

package info (click to toggle)
percona-toolkit 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 68,916 kB
  • sloc: perl: 241,287; sql: 22,868; sh: 19,746; javascript: 6,799; makefile: 353; awk: 38; python: 30; sed: 1
file content (45 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package pt_table_checksum_plugin;

use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use constant PTDEBUG => $ENV{PTDEBUG} || 0;

sub new {
   my ($class, %args) = @_;
   my $self = { %args };
   return bless $self, $class;
}

sub init {
   my ($self, %args) = @_;
   print "PLUGIN init\n";
}
 
sub before_replicate_check {
   my ($self, %args) = @_;
   print "PLUGIN before_replicate_check\n";
}
 
sub after_replicate_check {
   my ($self, %args) = @_;
   print "PLUGIN after_replicate_check\n";
}
 
sub get_slave_lag {
   my ($self, %args) = @_;
   print "PLUGIN get_slave_lag\n";
   return sub { return 0; };
}
 
sub before_checksum_table {
   my ($self, %args) = @_;
   print "PLUGIN before_checksum_table\n";
}

sub after_checksum_table {
   my ($self, %args) = @_;
   print "PLUGIN after_checksum_table\n";
}

1;