Fixed a segfault issue by initializing thd's
system_thread_info in wsrep applier threads, introduced by MDEV#6156.
This commit is contained in:
parent
086af8367e
commit
2f90221ad4
@ -5260,6 +5260,7 @@ typedef void (*wsrep_thd_processor_fun)(THD *);
|
|||||||
pthread_handler_t start_wsrep_THD(void *arg)
|
pthread_handler_t start_wsrep_THD(void *arg)
|
||||||
{
|
{
|
||||||
THD *thd;
|
THD *thd;
|
||||||
|
rpl_sql_thread_info sql_info(NULL);
|
||||||
wsrep_thd_processor_fun processor= (wsrep_thd_processor_fun)arg;
|
wsrep_thd_processor_fun processor= (wsrep_thd_processor_fun)arg;
|
||||||
|
|
||||||
if (my_thread_init())
|
if (my_thread_init())
|
||||||
@ -5290,6 +5291,7 @@ pthread_handler_t start_wsrep_THD(void *arg)
|
|||||||
thd->bootstrap=1;
|
thd->bootstrap=1;
|
||||||
thd->max_client_packet_length= thd->net.max_packet;
|
thd->max_client_packet_length= thd->net.max_packet;
|
||||||
thd->security_ctx->master_access= ~(ulong)0;
|
thd->security_ctx->master_access= ~(ulong)0;
|
||||||
|
thd->system_thread_info.rpl_sql_info= &sql_info;
|
||||||
|
|
||||||
/* from handle_one_connection... */
|
/* from handle_one_connection... */
|
||||||
pthread_detach_this_thread();
|
pthread_detach_this_thread();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user