Skip to content

Commit

Permalink
Merge pull request #907 from percona/remove_unused_variable_force_con…
Browse files Browse the repository at this point in the history
…cat_enums

Remove unused variable force_concat_enums
  • Loading branch information
svetasmirnova authored Jan 14, 2025
2 parents 0a98a81 + 1bec1fd commit 6f62b4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions bin/pt-online-schema-change
Original file line number Diff line number Diff line change
Expand Up @@ -5865,8 +5865,6 @@ sub _nibble_params {
);
PTDEBUG && _d('Ascend params:', Dumper($asc));

my $force_concat_enums;


my $from = "$tbl->{name} FORCE INDEX(`$index`)";
my $order_by = join(', ', map {$q->quote($_)} @{$index_cols});
Expand Down
2 changes: 0 additions & 2 deletions bin/pt-table-checksum
Original file line number Diff line number Diff line change
Expand Up @@ -6686,8 +6686,6 @@ sub _nibble_params {
);
PTDEBUG && _d('Ascend params:', Dumper($asc));

my $force_concat_enums;


my $from = "$tbl->{name} FORCE INDEX(`$index`)";
my $order_by = join(', ', map {$q->quote($_)} @{$index_cols});
Expand Down
4 changes: 0 additions & 4 deletions lib/NibbleIterator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ sub _nibble_params {
);
PTDEBUG && _d('Ascend params:', Dumper($asc));

# Check if enum fields items are sorted or not.
# If they are sorted we can skip adding CONCAT to improve the queries eficiency.
my $force_concat_enums;

# Make SQL statements, prepared on first call to next(). FROM and
# ORDER BY are the same for all statements. FORCE IDNEX and ORDER BY
# are needed to ensure deterministic nibbling.
Expand Down
4 changes: 4 additions & 0 deletions util/update-modules
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ if [ ! -f $tool_file ]; then
die "$tool_file does not exist"
fi

if [ -h $tool_file ]; then
die "$tool_file is a symbolic link"
fi

if [ -n "$(head -n 1 $tool_file | grep perl)" ]; then
tool_lang="perl"
else
Expand Down

0 comments on commit 6f62b4d

Please sign in to comment.