• Mattias Jonsson's avatar
    Backport of patch for Bug#34604 (from 6.0) · 5d5d1a81
    Mattias Jonsson authored
    post push fix for bug#20129, test failed due to non existing
    source files.
    
    mysql-test/Makefile.am:
      Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that
      partition is corrupt
      
      Test parts.partition_repair_myisam failed because the corrupted
      pre fabricated files was not included in the dist-file.
    mysql-test/suite/parts/r/partition_special_innodb.result:
      Bug#34604: hander::ha_rnd_end(): Assertion inited==RND failed
      
      updated result file
    mysql-test/suite/parts/t/partition_special_innodb-master.opt:
      Bug#34604: hander::ha_rnd_end(): Assertion inited==RND failed
      
      Added parameter to speed up the test.
      Set to 2 seconds to be working on slow machines.
    mysql-test/suite/parts/t/partition_special_innodb.test:
      Bug#34604: hander::ha_rnd_end(): Assertion inited==RND failed
      
      Added test for verifying the bug (without the patch in
      ha_partition.cc, this crashes a debug compiled server)
    sql/ha_partition.cc:
      Bug#34604: hander::ha_rnd_end(): Assertion inited==RND failed
      
      In some cases error was not properly propagated through
      ha_partition::rnd_next.
      
      Will now return the error code from the partitions rnd_next and
      update m_part_spec.start_part and m_last_part properly.
      This makes the inited state to be correct.
    5d5d1a81
partition_special_innodb.result 14.6 KB