add rpc update interface
This commit is contained in:
parent
44dcee0ca4
commit
bf41ee6bc8
|
@ -191,6 +191,9 @@ static void uvHandleActivityTimeout(uv_timer_t* handle) {
|
|||
|
||||
static bool uvHandleReq(SSvrConn* pConn) {
|
||||
STrans* pTransInst = pConn->pTransInst;
|
||||
SWorkThrd* pThrd = pConn->hostThrd;
|
||||
|
||||
|
||||
|
||||
STransMsgHead* pHead = NULL;
|
||||
|
||||
|
@ -1219,6 +1222,11 @@ void destroyWorkThrd(SWorkThrd* pThrd) {
|
|||
|
||||
void* pIter = taosHashIterate(pThrd->pWhiteList, NULL);
|
||||
while (pIter) {
|
||||
SArray* arr = *(SArray**)pIter;
|
||||
for (int i = 0; i < taosArrayGetSize(arr); i++) {
|
||||
char* p = taosArrayGetP(arr, i);
|
||||
taosMemoryFree(p);
|
||||
}
|
||||
pIter = taosHashIterate(pThrd->pWhiteList, pIter);
|
||||
}
|
||||
taosHashCleanup(pThrd->pWhiteList);
|
||||
|
|
Loading…
Reference in New Issue