mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 05:58:16 +00:00
Merged fix-1041391-rowchecker-wrong-debug-statement
This commit is contained in:
@@ -280,7 +280,7 @@ sub _get_hash_func {
|
||||
unshift @funcs, $func;
|
||||
}
|
||||
|
||||
my ($result, $error);
|
||||
my $error;
|
||||
foreach my $func ( @funcs ) {
|
||||
eval {
|
||||
my $sql = "SELECT $func('test-string')";
|
||||
@@ -292,7 +292,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