1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
two TABLE_LIST copy eliminated
This commit is contained in:
bell@sanja.is.com.ua
2004-07-16 01:15:55 +03:00
parent 2fd11169ab
commit 9336d36cf8
85 changed files with 6126 additions and 1250 deletions

View File

@ -166,7 +166,7 @@ int mysql_ha_close_list(THD *thd, TABLE_LIST *tables, bool flushed)
if (tables)
{
for (tl_item= tables ; tl_item; tl_item= tl_item->next)
for (tl_item= tables ; tl_item; tl_item= tl_item->next_local)
{
mysql_ha_close(thd, tl_item, /*dont_send_ok*/ 1,
/*dont_lock*/ 1, /*no_alias*/ 1);
@ -249,7 +249,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
it++; // Skip first NULL field
insert_fields(thd,tables,tables->db,tables->alias,&it);
insert_fields(thd, tables, tables->db, tables->alias, &it, 0);
select_limit+=offset_limit;
protocol->send_fields(&list,1);