mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 00:43:58 +00:00
Update SchemaIterator in pt-table-sync. Make the module handle NAME_lc or not.
This commit is contained in:
@@ -88,10 +88,15 @@ sub new {
|
||||
$resume{tbl} = $tbl;
|
||||
}
|
||||
|
||||
my $engine_key
|
||||
= $dbh && ($dbh->{FetchHashKeyName} || '') eq 'NAME_lc' ? 'engine'
|
||||
: 'Engine';
|
||||
|
||||
my $self = {
|
||||
%args,
|
||||
resume => \%resume,
|
||||
filters => _make_filters(%args),
|
||||
resume => \%resume,
|
||||
filters => _make_filters(%args),
|
||||
engine_key => $engine_key,
|
||||
};
|
||||
|
||||
return bless $self, $class;
|
||||
@@ -376,7 +381,7 @@ sub _iterate_dbh {
|
||||
}
|
||||
|
||||
if ( !$tbl_status
|
||||
|| $self->engine_is_allowed($tbl_status->{engine}) ) {
|
||||
|| $self->engine_is_allowed($tbl_status->{$self->{engine_key}}) ) {
|
||||
my $ddl;
|
||||
if ( my $tp = $self->{TableParser} ) {
|
||||
$ddl = $tp->get_create_table($dbh, $self->{db}, $tbl);
|
||||
|
Reference in New Issue
Block a user