Merge remote-tracking branch 'origin/3.0' into enh/opt-transport

This commit is contained in:
yihaoDeng 2024-10-12 19:20:21 +08:00
parent 51e3938897
commit ae770e1dd0
1 changed files with 3 additions and 4 deletions

View File

@ -533,10 +533,9 @@ int32_t loadRemoteDataCallback(void* param, SDataBuf* pMsg, int32_t code) {
int64_t* pRpcHandle = taosArrayGet(pExchangeInfo->pFetchRpcHandles, index); int64_t* pRpcHandle = taosArrayGet(pExchangeInfo->pFetchRpcHandles, index);
if (pRpcHandle != NULL) { if (pRpcHandle != NULL) {
code = asyncFreeConnById(pExchangeInfo->pTransporter, *pRpcHandle); int32_t ret = asyncFreeConnById(pExchangeInfo->pTransporter, *pRpcHandle);
if (code != 0) { if (ret != 0) {
qError("failed to free rpc handle, code:%s, %p", tstrerror(code), pExchangeInfo); qError("failed to free rpc handle, code:%s, %p", tstrerror(ret), pExchangeInfo);
code = 0;
} }
*pRpcHandle = -1; *pRpcHandle = -1;
} }