mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1
into mysql.com:/Users/mikron/wl1682
This commit is contained in:
@ -1635,6 +1635,7 @@ bool mysql_create_table(THD *thd,const char *db, const char *table_name,
|
||||
end:
|
||||
VOID(pthread_mutex_unlock(&LOCK_open));
|
||||
start_waiting_global_read_lock(thd);
|
||||
delete file;
|
||||
thd->proc_info="After create";
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
@ -3836,7 +3837,8 @@ copy_data_between_tables(TABLE *from,TABLE *to,
|
||||
this function does not set field->query_id in the columns to the
|
||||
current query id
|
||||
*/
|
||||
from->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
|
||||
to->file->ha_set_all_bits_in_write_set();
|
||||
from->file->ha_retrieve_all_cols();
|
||||
init_read_record(&info, thd, from, (SQL_SELECT *) 0, 1,1);
|
||||
if (ignore ||
|
||||
handle_duplicates == DUP_REPLACE)
|
||||
@ -3999,10 +4001,11 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables, HA_CHECK_OPT *check_opt)
|
||||
/* calculating table's checksum */
|
||||
ha_checksum crc= 0;
|
||||
|
||||
/* InnoDB must be told explicitly to retrieve all columns, because
|
||||
this function does not set field->query_id in the columns to the
|
||||
current query id */
|
||||
t->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
|
||||
/*
|
||||
Set all bits in read set and inform InnoDB that we are reading all
|
||||
fields
|
||||
*/
|
||||
t->file->ha_retrieve_all_cols();
|
||||
|
||||
if (t->file->ha_rnd_init(1))
|
||||
protocol->store_null();
|
||||
|
Reference in New Issue
Block a user