Skip to content

Commit

Permalink
remove check to fix the 'table does not exist' problem when lower_cas…
Browse files Browse the repository at this point in the history
…e_table_names=2 is set
  • Loading branch information
ehooi committed Dec 6, 2024
1 parent 58b9124 commit 78242c0
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bin/pt-archiver
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-duplicate-key-checker
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-find
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-heartbeat
Original file line number Diff line number Diff line change
Expand Up @@ -3953,7 +3953,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-index-usage
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-kill
Original file line number Diff line number Diff line change
Expand Up @@ -3205,7 +3205,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-online-schema-change
Original file line number Diff line number Diff line change
Expand Up @@ -3521,7 +3521,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-query-digest
Original file line number Diff line number Diff line change
Expand Up @@ -9082,7 +9082,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-table-checksum
Original file line number Diff line number Diff line change
Expand Up @@ -4715,7 +4715,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-table-sync
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-table-usage
Original file line number Diff line number Diff line change
Expand Up @@ -7069,7 +7069,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/TableParser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ sub check_table {
$self->{check_table_error} = $e;
return 0;
}
if ( !$row->[0] || $row->[0] ne $tbl ) {
if ( !$row->[0] ) {
PTDEBUG && _d('Table does not exist');
return 0;
}
Expand Down

0 comments on commit 78242c0

Please sign in to comment.