mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
MDEV-16264 prerequisite patch, enable thr_timer in embedded
Since threadpool is using thr_timer, and it also exist in embedded version, initialize timer also in embedded version
This commit is contained in:
parent
ad17c98dd5
commit
2fb23b896e
1 changed files with 0 additions and 4 deletions
|
@ -1995,9 +1995,7 @@ static void clean_up(bool print_message)
|
|||
sp_cache_end();
|
||||
free_status_vars();
|
||||
end_thr_alarm(1); /* Free allocated memory */
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
end_thr_timer();
|
||||
#endif
|
||||
my_free_open_file_info();
|
||||
if (defaults_argv)
|
||||
free_defaults(defaults_argv);
|
||||
|
@ -4737,13 +4735,11 @@ static int init_server_components()
|
|||
init_thr_lock();
|
||||
backup_init();
|
||||
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
if (init_thr_timer(thread_scheduler->max_threads + extra_max_connections))
|
||||
{
|
||||
fprintf(stderr, "Can't initialize timers\n");
|
||||
unireg_abort(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
my_uuid_init((ulong) (my_rnd(&sql_rand))*12345,12345);
|
||||
wt_init();
|
||||
|
|
Loading…
Add table
Reference in a new issue