mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -2454,6 +2454,11 @@ dispatch_end:
|
||||
thd->packet.shrink(thd->variables.net_buffer_length); // Reclaim some memory
|
||||
|
||||
thd->reset_kill_query(); /* Ensure that killed_errmsg is released */
|
||||
/*
|
||||
LEX::m_sql_cmd can point to Sql_cmd allocated on thd->mem_root.
|
||||
Unlink it now, before freeing the root.
|
||||
*/
|
||||
thd->lex->m_sql_cmd= NULL;
|
||||
free_root(thd->mem_root,MYF(MY_KEEP_PREALLOC));
|
||||
|
||||
#if defined(ENABLED_PROFILING)
|
||||
@ -7760,7 +7765,7 @@ void THD::reset_for_next_command(bool do_clear_error)
|
||||
if (opt_bin_log)
|
||||
reset_dynamic(&user_var_events);
|
||||
DBUG_ASSERT(user_var_events_alloc == &main_mem_root);
|
||||
enable_slow_log= variables.sql_log_slow;
|
||||
enable_slow_log= true;
|
||||
get_stmt_da()->reset_for_next_command();
|
||||
rand_used= 0;
|
||||
m_sent_row_count= m_examined_row_count= 0;
|
||||
|
Reference in New Issue
Block a user