#At file:///opt/local/work/mysql-6.0-runtime/
2718 Konstantin Osipov 2008-10-02
A fix for Bug#37550 SHOW PROCESSLIST displays "copy to tmp table"
even this does not happen.
Only set thd->proc_info if we're about to copy data in ALTER.
modified:
sql/sql_table.cc
per-file messages:
sql/sql_table.cc
Only set thd->proc_info if we're about to copy data in ALTER.
=== modified file 'sql/sql_table.cc'
--- a/sql/sql_table.cc 2008-09-04 20:00:04 +0000
+++ b/sql/sql_table.cc 2008-10-02 14:16:01 +0000
@@ -6983,7 +6983,6 @@ view_err:
/* Copy the data if necessary. */
thd->count_cuted_fields= CHECK_FIELD_WARN; // calc cuted fields
thd->cuted_fields=0L;
- thd_proc_info(thd, "copy to tmp table");
copied=deleted=0;
/*
We do not copy data for MERGE tables. Only the children have data.
@@ -6994,6 +6993,7 @@ view_err:
/* We don't want update TIMESTAMP fields during ALTER TABLE. */
new_table->timestamp_field_type= TIMESTAMP_NO_AUTO_SET;
new_table->next_number_field=new_table->found_next_number_field;
+ thd_proc_info(thd, "copy to tmp table");
error= copy_data_between_tables(table, new_table,
alter_info->create_list, ignore,
order_num, order, &copied, &deleted,
| Thread |
|---|
| • bzr commit into mysql-6.0 branch (kostja:2718) Bug#37550 | Konstantin Osipov | 2 Oct |