handle except
This commit is contained in:
parent
4f330fab1f
commit
6e9bc0cbd9
|
@ -525,6 +525,7 @@ static void cliHandleRelease(SCliMsg* pMsg, SCliThrdObj* pThrd) {
|
||||||
|
|
||||||
transDestroyBuffer(&conn->readBuf);
|
transDestroyBuffer(&conn->readBuf);
|
||||||
if (conn->persist && T_REF_VAL_GET(conn) >= 2) {
|
if (conn->persist && T_REF_VAL_GET(conn) >= 2) {
|
||||||
|
conn->persist = false;
|
||||||
transUnrefCliHandle(conn);
|
transUnrefCliHandle(conn);
|
||||||
addConnToPool(pThrd->pool, conn);
|
addConnToPool(pThrd->pool, conn);
|
||||||
} else {
|
} else {
|
||||||
|
@ -746,7 +747,6 @@ void transReleaseCliHandle(void* handle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
STransMsg tmsg = {.handle = handle};
|
STransMsg tmsg = {.handle = handle};
|
||||||
|
|
||||||
SCliMsg* cmsg = calloc(1, sizeof(SCliMsg));
|
SCliMsg* cmsg = calloc(1, sizeof(SCliMsg));
|
||||||
cmsg->type = Release;
|
cmsg->type = Release;
|
||||||
cmsg->msg = tmsg;
|
cmsg->msg = tmsg;
|
||||||
|
|
Loading…
Reference in New Issue