set THR_THD key and current_thd=NULL as early as possible,
otherwise safemalloc and my_malloc_size_cb_func will use current_thd before it's defined
Showing
Please register or sign in to comment
otherwise safemalloc and my_malloc_size_cb_func will use current_thd before it's defined