Files
percona-toolkit/t/pt-online-schema-change/samples/plugins/pt-1717.pm
Sveta Smirnova 8ce3b94a1c PT-1717 - resume pt-online-schema-change if it's interrupted
- Added test case for failures and recovery
- Implemented option --resume
2024-03-05 18:46:14 +03:00

22 lines
413 B
Perl

package pt_online_schema_change_plugin;
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use constant PTDEBUG => $ENV{PTDEBUG} || 0;
use Data::Dumper;
sub new {
my ($class, %args) = @_;
my $self = { %args };
return bless $self, $class;
}
sub on_copy_rows_after_nibble {
my ($self, %args) = @_;
my $tbl = $args{tbl};
print "Chunk: $tbl->{results}->{n_chunks}\n";
}
1;