mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 15:31:55 +00:00
Fix for the first bug in 1034717: Illegal division by zero if base == 1
This commit is contained in:
@@ -627,6 +627,13 @@ sub _chunk_char {
|
||||
}
|
||||
PTDEBUG && _d("Base", $base, "chars:", @chars);
|
||||
|
||||
# See https://bugs.launchpad.net/percona-toolkit/+bug/1034717
|
||||
die "Cannot chunk table $db_tbl using the character column "
|
||||
. "$chunk_col, most likely because all values start with the "
|
||||
. "same character. This table must be synced separately by "
|
||||
. "specifying a list of --algorithms without the Chunk algorithm"
|
||||
if $base == 1;
|
||||
|
||||
# Now we begin calculating how to chunk the char column. This is
|
||||
# completely different from _chunk_numeric because we're not dealing
|
||||
# with the values to chunk directly (the characters) but rather a map.
|
||||
|
Reference in New Issue
Block a user