~percona-toolkit-dev/percona-toolkit/turn-off-v-c

« back to all changes in this revision

Viewing changes to lib/TableChunker.pm

  • Committer: Brian Fraser
  • Date: 2012-08-24 22:50:34 UTC
  • mfrom: (363.2.1 percona-toolkit)
  • Revision ID: brian.fraser@percona.com-20120824225034-5iec3owb7se41lvh
Merged fix-1034717-divison-by-zero-base-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
   }
628
628
   PTDEBUG && _d("Base", $base, "chars:", @chars);
629
629
 
 
630
   # See https://bugs.launchpad.net/percona-toolkit/+bug/1034717
 
631
   die "Cannot chunk table $db_tbl using the character column "
 
632
     . "$chunk_col, most likely because all values start with the "
 
633
     . "same character.  This table must be synced separately by "
 
634
     . "specifying a list of --algorithms without the Chunk algorithm"
 
635
      if $base == 1;
 
636
 
630
637
   # Now we begin calculating how to chunk the char column.  This is
631
638
   # completely different from _chunk_numeric because we're not dealing
632
639
   # with the values to chunk directly (the characters) but rather a map.