mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Manual merge of mysql-5.1-bugteam to mysql-trunk-merge.
This commit is contained in:
@ -2177,6 +2177,7 @@ void wait_for_condition(THD *thd, pthread_mutex_t *mutex, pthread_cond_t *cond)
|
||||
proc_info=thd->proc_info;
|
||||
thd_proc_info(thd, "Waiting for table");
|
||||
DBUG_ENTER("wait_for_condition");
|
||||
DEBUG_SYNC(thd, "waiting_for_table");
|
||||
if (!thd->killed)
|
||||
(void) pthread_cond_wait(cond, mutex);
|
||||
|
||||
@ -4598,7 +4599,20 @@ int open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags)
|
||||
safe_to_ignore_table= prelock_handler.safely_trapped_errors();
|
||||
}
|
||||
else
|
||||
{
|
||||
tables->table= open_table(thd, tables, &new_frm_mem, &refresh, flags);
|
||||
|
||||
/*
|
||||
Skip further processing if there has been a fatal error while
|
||||
trying to open a table. For example, this might happen due to
|
||||
stack shortage, unknown definer in views, etc.
|
||||
*/
|
||||
if (!tables->table && thd->is_error())
|
||||
{
|
||||
result= -1;
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
DBUG_PRINT("tcache", ("referenced table: '%s'.'%s' 0x%lx",
|
||||
|
Reference in New Issue
Block a user