Commit 8ef8cd76 authored by unknown's avatar unknown
Browse files

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.
parent 56c517bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {