add debug log
This commit is contained in:
parent
3f46145c01
commit
fce636339e
|
@ -663,6 +663,7 @@ static SCliConn* getConnFromPool(SCliThrd* pThrd, char* key, bool* exceed) {
|
||||||
if (plist->list->numOfConn >= pTranInst->connLimitNum) {
|
if (plist->list->numOfConn >= pTranInst->connLimitNum) {
|
||||||
*exceed = true;
|
*exceed = true;
|
||||||
}
|
}
|
||||||
|
plist->list->numOfConn++;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1039,7 +1040,6 @@ static void cliDestroyConn(SCliConn* conn, bool clear) {
|
||||||
list->size--;
|
list->size--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
conn->list = NULL;
|
conn->list = NULL;
|
||||||
|
|
||||||
(void)transReleaseExHandle(transGetRefMgt(), conn->refId);
|
(void)transReleaseExHandle(transGetRefMgt(), conn->refId);
|
||||||
|
@ -1079,8 +1079,11 @@ static void cliDestroy(uv_handle_t* handle) {
|
||||||
|
|
||||||
(void)atomic_sub_fetch_32(&pThrd->connCount, 1);
|
(void)atomic_sub_fetch_32(&pThrd->connCount, 1);
|
||||||
|
|
||||||
|
if (conn->refId > 0) {
|
||||||
(void)transReleaseExHandle(transGetRefMgt(), conn->refId);
|
(void)transReleaseExHandle(transGetRefMgt(), conn->refId);
|
||||||
(void)transRemoveExHandle(transGetRefMgt(), conn->refId);
|
(void)transRemoveExHandle(transGetRefMgt(), conn->refId);
|
||||||
|
|
||||||
|
}
|
||||||
taosMemoryFree(conn->dstAddr);
|
taosMemoryFree(conn->dstAddr);
|
||||||
taosMemoryFree(conn->stream);
|
taosMemoryFree(conn->stream);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue