mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 00:24:30 +02:00
Manual merge SP-locking improvements patch with current tree.
mysql-test/r/mysqldump.result: Auto merged mysql-test/r/sp.result: Auto merged mysql-test/t/mysqldump.test: Auto merged mysql-test/t/sp.test: Auto merged sql/item_func.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sp.cc: Auto merged sql/sp_rcontext.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_prepare.cc: Auto merged sql/sql_update.cc: Auto merged sql/sql_view.cc: Auto merged sql/table.h: Auto merged sql/sp_head.cc: Manual merge. sql/sql_class.cc: Manual merge. sql/sql_parse.cc: Manual merge. sql/sql_yacc.yy: Manual merge.
This commit is contained in:
commit
b1095fb0cd
29 changed files with 1813 additions and 915 deletions
|
|
@ -169,13 +169,12 @@ void lex_start(THD *thd, uchar *buf,uint length)
|
|||
lex->sphead= NULL;
|
||||
lex->spcont= NULL;
|
||||
lex->proc_list.first= 0;
|
||||
lex->query_tables_own_last= 0;
|
||||
|
||||
if (lex->spfuns.records)
|
||||
my_hash_reset(&lex->spfuns);
|
||||
if (lex->spprocs.records)
|
||||
my_hash_reset(&lex->spprocs);
|
||||
if (lex->sptabs.records)
|
||||
my_hash_reset(&lex->sptabs);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
|
@ -1868,6 +1867,8 @@ TABLE_LIST *st_lex::unlink_first_table(bool *link_to_local)
|
|||
*/
|
||||
if ((query_tables= query_tables->next_global))
|
||||
query_tables->prev_global= &query_tables;
|
||||
else
|
||||
query_tables_last= &query_tables;
|
||||
first->next_global= 0;
|
||||
|
||||
/*
|
||||
|
|
@ -1973,6 +1974,8 @@ void st_lex::link_first_table_back(TABLE_LIST *first,
|
|||
{
|
||||
if ((first->next_global= query_tables))
|
||||
query_tables->prev_global= &first->next_global;
|
||||
else
|
||||
query_tables_last= &first->next_global;
|
||||
query_tables= first;
|
||||
|
||||
if (link_to_local)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue