commit
56e8b57228
|
@ -368,7 +368,9 @@ void tscProcessAsyncRes(SSchedMsg *pMsg) {
|
||||||
pSql->fp = pSql->fetchFp;
|
pSql->fp = pSql->fetchFp;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*pSql->fp)(pSql->param, taosres, code);
|
if (pSql->fp) {
|
||||||
|
(*pSql->fp)(pSql->param, taosres, code);
|
||||||
|
}
|
||||||
|
|
||||||
if (shouldFree) {
|
if (shouldFree) {
|
||||||
tscTrace("%p sqlObj is automatically freed in async res", pSql);
|
tscTrace("%p sqlObj is automatically freed in async res", pSql);
|
||||||
|
|
|
@ -1451,8 +1451,6 @@ bool tscShouldBeFreed(SSqlObj* pSql) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(pSql->fp != NULL);
|
|
||||||
|
|
||||||
STscObj* pTscObj = pSql->pTscObj;
|
STscObj* pTscObj = pSql->pTscObj;
|
||||||
if (pSql->pStream != NULL || pTscObj->pHb == pSql || pSql->pSubscription != NULL) {
|
if (pSql->pStream != NULL || pTscObj->pHb == pSql || pSql->pSubscription != NULL) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -924,7 +924,7 @@ static void *rpcProcessMsgFromPeer(SRecvInfo *pRecv) {
|
||||||
// underlying UDP layer does not know it is server or client
|
// underlying UDP layer does not know it is server or client
|
||||||
pRecv->connType = pRecv->connType | pRpc->connType;
|
pRecv->connType = pRecv->connType | pRpc->connType;
|
||||||
|
|
||||||
if (pRecv->ip == 0) {
|
if (pRecv->msg == NULL) {
|
||||||
rpcProcessBrokenLink(pConn);
|
rpcProcessBrokenLink(pConn);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue