Commit 982e3423 authored by unknown's avatar unknown

revert open_ltable changing

parent b99dec07
...@@ -448,8 +448,7 @@ void kill_delayed_threads(void); ...@@ -448,8 +448,7 @@ void kill_delayed_threads(void);
int mysql_delete(THD *thd, TABLE_LIST *table, COND *conds, ORDER *order, int mysql_delete(THD *thd, TABLE_LIST *table, COND *conds, ORDER *order,
ha_rows rows, ulong options); ha_rows rows, ulong options);
int mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok=0); int mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok=0);
TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type update, TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type update);
bool multiopen= 0);
TABLE *open_table(THD *thd,const char *db,const char *table,const char *alias, TABLE *open_table(THD *thd,const char *db,const char *table,const char *alias,
bool *refresh); bool *refresh);
TABLE *reopen_name_locked_table(THD* thd, TABLE_LIST* table); TABLE *reopen_name_locked_table(THD* thd, TABLE_LIST* table);
......
...@@ -1615,21 +1615,14 @@ static bool check_lock_and_start_stmt(THD *thd, TABLE *table, ...@@ -1615,21 +1615,14 @@ static bool check_lock_and_start_stmt(THD *thd, TABLE *table,
table_list->table table table_list->table table
*/ */
TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type, TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type)
bool multiopen)
{ {
TABLE *table; TABLE *table;
bool refresh; bool refresh;
DBUG_ENTER("open_ltable"); DBUG_ENTER("open_ltable");
thd->proc_info="Opening table"; thd->proc_info="Opening table";
if (table_list->next && multiopen) while (!(table=open_table(thd,table_list->db,
{
while (open_tables(thd,table_list) && refresh) ;
table= table_list->table;
}
else
while (!(table= open_table(thd,table_list->db,
table_list->real_name,table_list->alias, table_list->real_name,table_list->alias,
&refresh)) && refresh) ; &refresh)) && refresh) ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment