Merge branch '2.0' into refact/slguan
This commit is contained in:
commit
12ccad9df5
|
@ -829,18 +829,19 @@ static void *rpcProcessMsgFromPeer(SRecvInfo *pRecv) {
|
||||||
pRecv->msgLen, pHead->sourceId, pHead->destId, pHead->tranId, pHead->port);
|
pRecv->msgLen, pHead->sourceId, pHead->destId, pHead->tranId, pHead->port);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (terrno != TSDB_CODE_ALREADY_PROCESSED) {
|
int32_t code = terrno;
|
||||||
if (terrno != 0) { // parsing error
|
if (code != TSDB_CODE_ALREADY_PROCESSED) {
|
||||||
|
if (code != 0) { // parsing error
|
||||||
if ( rpcIsReq(pHead->msgType) ) {
|
if ( rpcIsReq(pHead->msgType) ) {
|
||||||
rpcSendErrorMsgToPeer(pRecv, terrno);
|
rpcSendErrorMsgToPeer(pRecv, code);
|
||||||
tTrace("%s %p, %s is sent with error code:%x", pRpc->label, pConn, taosMsg[pHead->msgType+1], terrno);
|
tTrace("%s %p, %s is sent with error code:%x", pRpc->label, pConn, taosMsg[pHead->msgType+1], code);
|
||||||
}
|
}
|
||||||
} else { // parsing OK
|
} else { // parsing OK
|
||||||
rpcProcessIncomingMsg(pConn, pHead);
|
rpcProcessIncomingMsg(pConn, pHead);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (terrno) rpcFreeMsg(pRecv->msg);
|
if (code) rpcFreeMsg(pRecv->msg);
|
||||||
return pConn;
|
return pConn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue