• unknown's avatar
    Fix for BUG#812 · f200fa15
    unknown authored
    "mysqlhotcopy fails to copy tables but does not indicate a failure"
    ("does not indicate a failure");
    this is about "mysqlhotcopy fails to copy tables".
    
    
    mysql-test/t/rpl_error_ignored_table-slave.opt:
      added a missing newline
    scripts/mysqlhotcopy.sh:
      Fix for BUG#812.
      The problem was that with many tables to copy (10000 in the bug's example),
      the generated 'cp' command line was 1MB long, whereas (at least on my Linux) it
      should not exceed 128 kB. Testing the 'cp' in a shell terminal gives
      "arguments list too long".
      So we issue several small (100 kB) 'cp' command lines instead of a big one.
      Of course, this will still fail on systems where the limit is below 100 kB.
      We now have safe_system() which cuts the command line in pieces,
      and calls safe_simple_system() (execution) for each piece.
    f200fa15
mysqlhotcopy.sh 30.5 KB