mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
fix wsrep test crashes on startup
This commit is contained in:
parent
4a0612ed2a
commit
935033aea7
1 changed files with 1 additions and 3 deletions
|
@ -1762,13 +1762,11 @@ pthread_handler_t start_wsrep_THD(void *arg)
|
|||
THD *thd;
|
||||
wsrep_thd_processor_fun processor= (wsrep_thd_processor_fun)arg;
|
||||
|
||||
if (my_thread_init() || (!(thd= new THD(true))))
|
||||
if (my_thread_init() || (!(thd= new THD(next_thread_id(), true))))
|
||||
{
|
||||
goto error;
|
||||
}
|
||||
|
||||
thd->thread_id= next_thread_id();
|
||||
|
||||
mysql_mutex_lock(&LOCK_thread_count);
|
||||
|
||||
if (wsrep_gtid_mode)
|
||||
|
|
Loading…
Reference in a new issue