mirror of
https://github.com/MariaDB/server.git
synced 2025-08-29 00:08:14 +03:00
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:
@@ -2317,6 +2317,7 @@ ha_innobase::write_row(
|
|||||||
table->timestamp_field->set_time();
|
table->timestamp_field->set_time();
|
||||||
|
|
||||||
if ((user_thd->lex->sql_command == SQLCOM_ALTER_TABLE
|
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_CREATE_INDEX
|
||||||
|| user_thd->lex->sql_command == SQLCOM_DROP_INDEX)
|
|| user_thd->lex->sql_command == SQLCOM_DROP_INDEX)
|
||||||
&& num_write_row >= 10000) {
|
&& num_write_row >= 10000) {
|
||||||
|
Reference in New Issue
Block a user