Fix stop gaussdb failed when init thread failed.

This commit is contained in:
TotaJ
2021-07-17 15:59:10 +08:00
parent 468d6bcbc2
commit d4c59b82d8
3 changed files with 16 additions and 3 deletions

View File

@ -1478,11 +1478,11 @@ void knl_thread_mot_init()
void knl_thread_init(knl_thread_role role)
{
/* doesn't init t_thrd.bn, check GaussDbThreadMain for detail */
t_thrd.role = role;
t_thrd.subrole = NO_SUBROLE;
t_thrd.proc = NULL;
t_thrd.pgxact = NULL;
t_thrd.bn = NULL;
t_thrd.myLogicTid = 10000;
t_thrd.fake_session = NULL;
t_thrd.threadpool_cxt.reaper_dead_session = false;