Commit 2fb23b89 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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
parent ad17c98d
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment