mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-18 17:58:55 +00:00
Remove useless var in SchemaIterator::_iterate_files() and update module in tools.
This commit is contained in:
@@ -1510,7 +1510,7 @@ sub name {
|
||||
|
||||
sub DESTROY {
|
||||
my ($self) = @_;
|
||||
if ( $self->{dbh} ) {
|
||||
if ( $self->{dbh} && ref($self->{dbh}) ) {
|
||||
PTDEBUG && _d('Disconnecting dbh', $self->{dbh}, $self->{name});
|
||||
$self->{dbh}->disconnect();
|
||||
}
|
||||
@@ -4704,7 +4704,6 @@ sub next {
|
||||
|
||||
sub _iterate_files {
|
||||
my ( $self ) = @_;
|
||||
my $q = $self->{Quoter};
|
||||
|
||||
if ( !$self->{fh} ) {
|
||||
my ($fh, $file) = $self->{file_itr}->();
|
||||
|
@@ -232,7 +232,6 @@ sub next {
|
||||
|
||||
sub _iterate_files {
|
||||
my ( $self ) = @_;
|
||||
my $q = $self->{Quoter};
|
||||
|
||||
if ( !$self->{fh} ) {
|
||||
my ($fh, $file) = $self->{file_itr}->();
|
||||
|
Reference in New Issue
Block a user