mirror of
https://github.com/MariaDB/server.git
synced 2026-05-05 06:35:33 +02:00
THD::init_for_queries() pushed back:
see comments to the method why sql/sql_class.h: THD::init_for_queries() pushed back: see comments to the method why Cleanup
This commit is contained in:
parent
b4b8d1f677
commit
2fe005174f
4 changed files with 30 additions and 7 deletions
|
|
@ -974,6 +974,7 @@ pthread_handler_decl(handle_one_connection,arg)
|
|||
|
||||
thd->proc_info=0;
|
||||
thd->set_time();
|
||||
thd->init_for_queries();
|
||||
while (!net->error && net->vio != 0 && !thd->killed)
|
||||
{
|
||||
if (do_command(thd))
|
||||
|
|
@ -1054,6 +1055,7 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg)
|
|||
thd->priv_user=thd->user=(char*) my_strdup("boot", MYF(MY_WME));
|
||||
|
||||
buff= (char*) thd->net.buff;
|
||||
thd->init_for_queries();
|
||||
while (fgets(buff, thd->net.max_packet, file))
|
||||
{
|
||||
uint length=(uint) strlen(buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue