fix client deadlock
This commit is contained in:
parent
cfedc4d67a
commit
1c200b4198
|
@ -222,7 +222,7 @@ static void cliReleaseUnfinishedMsg(SCliConn* conn) {
|
|||
SCliMsg* cliMsg = transQueueGet(&conn->cliMsgs, 0); \
|
||||
if (cliMsg->type == Release) return; \
|
||||
} \
|
||||
tDebug("%s conn %p receive release request, ref:%d", CONN_GET_INST_LABEL(conn), conn, T_REF_VAL_GET(conn)); \
|
||||
tDebug("%s conn %p receive release request, refId:%" PRId64 "", CONN_GET_INST_LABEL(conn), conn, conn->refId); \
|
||||
if (T_REF_VAL_GET(conn) > 1) { \
|
||||
transUnrefCliHandle(conn); \
|
||||
} \
|
||||
|
@ -890,6 +890,7 @@ SCliConn* cliGetConn(SCliMsg* pMsg, SCliThrd* pThrd, bool* ignore) {
|
|||
if (refId != 0) {
|
||||
SExHandle* exh = transAcquireExHandle(transGetRefMgt(), refId);
|
||||
if (exh == NULL) {
|
||||
tError("failed to get conn, refId: %" PRId64 "", refId);
|
||||
*ignore = true;
|
||||
return NULL;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue