Revert changes in transCli.
This commit is contained in:
parent
bf6361ac93
commit
71bdfdc3f7
|
@ -652,7 +652,6 @@ void cliHandleResp(SCliConn* conn) {
|
|||
}
|
||||
|
||||
if ((code = transDecompressMsg((char**)&pHead, &msgLen)) < 0) {
|
||||
taosMemoryFree(pHead);
|
||||
tDebug("%s conn %p recv invalid packet, failed to decompress", CONN_GET_INST_LABEL(conn), conn);
|
||||
// TODO: notify cb
|
||||
return;
|
||||
|
@ -665,10 +664,8 @@ void cliHandleResp(SCliConn* conn) {
|
|||
|
||||
if (cliHandleState_mayHandleReleaseResp(conn, pHead)) {
|
||||
if (cliMayRecycleConn(conn)) {
|
||||
taosMemoryFree(pHead);
|
||||
return;
|
||||
}
|
||||
taosMemoryFree(pHead);
|
||||
return;
|
||||
}
|
||||
code = cliGetReqBySeq(conn, seq, pHead->msgType, &pReq);
|
||||
|
@ -677,7 +674,6 @@ void cliHandleResp(SCliConn* conn) {
|
|||
if (code == 0) {
|
||||
code = cliBuildRespFromCont(NULL, &resp, pHead);
|
||||
code = cliNotifyCb(conn, NULL, &resp);
|
||||
taosMemoryFree(pHead);
|
||||
return;
|
||||
}
|
||||
if (code != 0) {
|
||||
|
@ -705,7 +701,6 @@ void cliHandleResp(SCliConn* conn) {
|
|||
tGDebug("%s conn %p %s received from %s, local info:%s, len:%d, seq:%" PRId64 ", sid:%" PRId64 ", code:%s",
|
||||
CONN_GET_INST_LABEL(conn), conn, TMSG_INFO(resp.msgType), conn->dst, conn->src, pHead->msgLen, seq, qId,
|
||||
tstrerror(pHead->code));
|
||||
taosMemoryFree(pHead);
|
||||
code = cliNotifyCb(conn, pReq, &resp);
|
||||
if (code == TSDB_CODE_RPC_ASYNC_IN_PROCESS) {
|
||||
tGWarn("%s msg need retry", CONN_GET_INST_LABEL(conn));
|
||||
|
|
Loading…
Reference in New Issue