• unknown's avatar
    InnoDB: Make intermediate COMMITs in ALTER TABLE more robust (Bug #6633) · 90f3262a
    unknown authored
    
    innobase/include/lock0lock.h:
      Replaced lock_get_ix_table() with lock_get_table().
    innobase/lock/lock0lock.c:
      Replaced lock_get_ix_table() with lock_get_table().
    innobase/include/row0mysql.h:
      row_lock_table_for_mysql(): Added parameter mode.
    innobase/row/row0mysql.c:
      row_lock_table_for_mysql(): Added parameter mode.
    sql/ha_innodb.cc:
      ha_innobase::write_row(): Make ALTER TABLE commits more robust:
      account for conversions from non-InnoDB format,
      do not attempt to commit if there are other than
      a single IX or IS lock on the source table, and
      the source table is in InnoDB format.  This
      prohibits intermediate commits for OPTIMIZE TABLE
      if the table contains an auto_increment field.
    90f3262a
row0mysql.c 87.9 KB