mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -304,6 +304,7 @@ dbcontext::init_thread(const void *stack_bottom, volatile int& shutdown_flag)
|
||||
thd->db = 0;
|
||||
thd->db = my_strdup("handlersocket", MYF(0));
|
||||
}
|
||||
thd->variables.option_bits |= OPTION_TABLE_LOCK;
|
||||
my_pthread_setspecific_ptr(THR_THD, thd);
|
||||
DBG_THR(fprintf(stderr, "HNDSOCK x0 %p\n", thd));
|
||||
}
|
||||
@ -341,7 +342,7 @@ void
|
||||
dbcontext::term_thread()
|
||||
{
|
||||
DBG_THR(fprintf(stderr, "HNDSOCK thread end %p\n", thd));
|
||||
unlock_tables_if();
|
||||
close_tables_if();
|
||||
my_pthread_setspecific_ptr(THR_THD, 0);
|
||||
{
|
||||
pthread_mutex_lock(&LOCK_thread_count);
|
||||
|
Reference in New Issue
Block a user