Commit 4f0fc0f9 authored by Akira Higuchi's avatar Akira Higuchi Committed by Sergey Vojtovich

fix a memory leak in handlersocket

parent ee768d8e
...@@ -304,6 +304,7 @@ dbcontext::init_thread(const void *stack_bottom, volatile int& shutdown_flag) ...@@ -304,6 +304,7 @@ dbcontext::init_thread(const void *stack_bottom, volatile int& shutdown_flag)
thd->db = 0; thd->db = 0;
thd->db = my_strdup("handlersocket", MYF(0)); thd->db = my_strdup("handlersocket", MYF(0));
} }
thd->variables.option_bits |= OPTION_TABLE_LOCK;
my_pthread_setspecific_ptr(THR_THD, thd); my_pthread_setspecific_ptr(THR_THD, thd);
DBG_THR(fprintf(stderr, "HNDSOCK x0 %p\n", thd)); DBG_THR(fprintf(stderr, "HNDSOCK x0 %p\n", thd));
} }
......
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