diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 0fbac13be28..0bdd620706d 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2317,6 +2317,7 @@ ha_innobase::write_row( table->timestamp_field->set_time(); if ((user_thd->lex->sql_command == SQLCOM_ALTER_TABLE + || user_thd->lex->sql_command == SQLCOM_OPTIMIZE || user_thd->lex->sql_command == SQLCOM_CREATE_INDEX || user_thd->lex->sql_command == SQLCOM_DROP_INDEX) && num_write_row >= 10000) {