• unknown's avatar
    InnoDB: Make intermediate COMMITs in ALTER TABLE more robust (Bug #6633) · 346dce93
    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.
    346dce93
row0mysql.h 22.8 KB