ha_innodb.cc:
write_row(): Detect SQLCOM_OPTIMIZE, so that also OPTIMIZE TABLE will commit at every 10,000 copied rows. sql/ha_innodb.cc: write_row(): Detect SQLCOM_OPTIMIZE, so that also OPTIMIZE TABLE will commit at every 10,000 copied rows.
This commit is contained in:
parent
56c517bda1
commit
8ef8cd7622
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user