diff options
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index fe1c7e1e7e1..0b61c21b58b 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -3525,7 +3525,7 @@ bool mysql_create_table_internal(THD *thd, } } - thd->proc_info="creating table"; + thd_proc_info(thd, "creating table"); create_info->table_existed= 0; // Mark that table is created if (thd->variables.sql_mode & MODE_NO_DIR_IN_CREATE) @@ -3565,7 +3565,7 @@ unlock_and_end: VOID(pthread_mutex_unlock(&LOCK_open)); err: - thd->proc_info="After create"; + thd_proc_info(thd, "After create"); delete file; DBUG_RETURN(error); @@ -4949,7 +4949,7 @@ mysql_discard_or_import_tablespace(THD *thd, ALTER TABLE */ - thd->proc_info="discard_or_import_tablespace"; + thd_proc_info(thd, "discard_or_import_tablespace"); discard= test(tablespace_op == DISCARD_TABLESPACE); @@ -4966,7 +4966,7 @@ mysql_discard_or_import_tablespace(THD *thd, error=table->file->discard_or_import_tablespace(discard); - thd->proc_info="end"; + thd_proc_info(thd, "end"); if (error) goto err; @@ -5413,7 +5413,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name, } } - thd->proc_info="init"; + thd_proc_info(thd, "init"); if (!(create_info= copy_create_info(lex_create_info))) { DBUG_RETURN(TRUE); @@ -5585,7 +5585,7 @@ view_err: DBUG_RETURN(TRUE); } - thd->proc_info="setup"; + thd_proc_info(thd, "setup"); if (!(alter_info->flags & ~(ALTER_RENAME | ALTER_KEYS_ONOFF)) && !table->s->tmp_table) // no need to touch frm { @@ -5640,7 +5640,7 @@ view_err: if (!error && (new_name != table_name || new_db != db)) { - thd->proc_info="rename"; + thd_proc_info(thd, "rename"); /* Then do a 'simple' rename of the table */ if (!access(new_name_buff,F_OK)) { @@ -6291,7 +6291,7 @@ view_err: /* Copy the data if necessary. */ thd->count_cuted_fields= CHECK_FIELD_WARN; // calc cuted fields thd->cuted_fields=0L; - thd->proc_info="copy to tmp table"; + thd_proc_info(thd, "copy to tmp table"); copied=deleted=0; if (new_table && !(new_table->file->ha_table_flags() & HA_NO_COPY_ON_ALTER)) { @@ -6516,7 +6516,7 @@ view_err: from the cache, free all locks, close the old table and remove it. */ - thd->proc_info="rename result table"; + thd_proc_info(thd, "rename result table"); my_snprintf(old_name, sizeof(old_name), "%s2-%lx-%lx", tmp_file_prefix, current_pid, thd->thread_id); if (lower_case_table_names) @@ -6691,7 +6691,7 @@ view_err: if (error) goto err; } - thd->proc_info="end"; + thd_proc_info(thd, "end"); ha_binlog_log_query(thd, create_info->db_type, LOGCOM_ALTER_TABLE, thd->query, thd->query_length, |