mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Merged fix-1041391-rowchecker-wrong-debug-statement
This commit is contained in:
@@ -5398,7 +5398,7 @@ sub _get_hash_func {
|
||||
unshift @funcs, $func;
|
||||
}
|
||||
|
||||
my ($result, $error);
|
||||
my $error;
|
||||
foreach my $func ( @funcs ) {
|
||||
eval {
|
||||
my $sql = "SELECT $func('test-string')";
|
||||
@@ -5410,7 +5410,7 @@ sub _get_hash_func {
|
||||
PTDEBUG && _d($func, 'cannot be used because', $1);
|
||||
next;
|
||||
}
|
||||
PTDEBUG && _d('Chosen hash func:', $result);
|
||||
PTDEBUG && _d('Chosen hash func:', $func);
|
||||
return $func;
|
||||
}
|
||||
die($error || 'No hash functions (CRC32, MD5, etc.) are available');
|
||||
|
Reference in New Issue
Block a user