!122 set openGauss thread name and add getting function of t_thrd and u_sess

Merge pull request !122 from chenxiaobin/master
This commit is contained in:
opengauss-bot
2020-08-21 23:23:52 +08:00
committed by Gitee
42 changed files with 186 additions and 107 deletions

View File

@ -1140,3 +1140,8 @@ knl_session_context* create_session_context(MemoryContext parent, uint64 id)
MemoryContextSwitchTo(old_cxt);
return sess;
}
__attribute__ ((__used__)) knl_session_context *get_current_session()
{
return u_sess;
}