1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Merge 10.6 into 10.11

This commit is contained in:
Marko Mäkelä
2025-01-08 12:51:26 +02:00
327 changed files with 1921 additions and 980 deletions

View File

@@ -802,9 +802,11 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
Pass nominal parameters to init_alloc_root only to ensure that
the destructor works OK in case of an error. The main_mem_root
will be re-initialized in init_for_queries().
The base one will mainly be use to allocate memory during authentication.
*/
init_sql_alloc(key_memory_thd_main_mem_root,
&main_mem_root, 64, 0, MYF(MY_THREAD_SPECIFIC));
&main_mem_root, DEFAULT_ROOT_BLOCK_SIZE, 0,
MYF(MY_THREAD_SPECIFIC));
/*
Allocation of user variables for binary logging is always done with main
@@ -5803,6 +5805,20 @@ extern "C" void *thd_mdl_context(MYSQL_THD thd)
return &thd->mdl_context;
}
/**
log_warnings accessor
@param thd the current session
@return log warning level
*/
extern "C" int thd_log_warnings(const MYSQL_THD thd)
{
return thd->variables.log_warnings;
}
/**
Send check/repair message to the user