• unknown's avatar
    Bug #28477 innodb assertion and crash during alter table to add/drop partition. · afd1bde5
    unknown authored
    The bug was repeated on MyISAM tables, so isn't InnoDB specific.
    Reason of the bug is that partition-related members of TABLE_SHARE
    wasn't properly updated after ALTER command. So if other thread doesn't
    reread frm file, and just uses cached SHARE, it uses wrong data
    
    
    sql/sql_table.cc:
      Bug #28477 innodb assertion and crash during alter table to add/drop partition.
      
      keep share members updated after table modification
    sql/table.cc:
      Bug #28477 innodb assertion and crash during alter table to add/drop partition.
      
      share->partition_info_buffer_size initialization added
    sql/table.h:
      Bug #28477 innodb assertion and crash during alter table to add/drop partition.
      
      partition_info_buffer_size declared in st_table_share to store
      the size of the memory available for partition_info
    afd1bde5
sql_table.cc 225 KB