fixed 56422b7 from https://gitee.com/li_jianqiu/openGauss-server/pulls/1634
【bugfix】从应用端看连接数并没有达到1W最大连接数,但是数据库堆栈中存在13800个线程,也不能创建新连接,数据库hang住。
This commit is contained in:
@ -2306,7 +2306,11 @@ bool gs_stop_query(gsocket* gsock, uint32 remote_pid)
|
||||
/* get the error information of communication layer */
|
||||
const char* gs_comm_strerror()
|
||||
{
|
||||
return mc_strerror(errno);
|
||||
bool savedVal = t_thrd.int_cxt.ImmediateInterruptOK;
|
||||
t_thrd.int_cxt.ImmediateInterruptOK = false;
|
||||
const char *errMsg = mc_strerror(errno);
|
||||
t_thrd.int_cxt.ImmediateInterruptOK = savedVal;
|
||||
return errMsg;
|
||||
}
|
||||
|
||||
/* get communication layer stream status at receiver end as a tuple for pg_comm_stream_status */
|
||||
|
||||
Reference in New Issue
Block a user