mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 15:25:33 +02:00
fix a memory leak in handlersocket
This commit is contained in:
parent
ee768d8e0e
commit
4f0fc0f912
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue