refactor: do some internal refactor.

This commit is contained in:
Haojun Liao 2023-03-31 19:46:10 +08:00
parent 9f64e6dc64
commit f1384206f3
1 changed files with 2 additions and 2 deletions

View File

@ -1086,12 +1086,12 @@ int32_t mndTransProcessRsp(SRpcMsg *pRsp) {
goto _OVER;
}
pTrans->lastErrorNo = pRsp->code;
STransAction *pAction = taosArrayGet(pArray, action);
if (pAction != NULL) {
pAction->msgReceived = 1;
pAction->errCode = pRsp->code;
pTrans->lastErrorNo = pRsp->code;
mInfo("trans:%d, %s:%d response is received, code:0x%x, accept:0x%x retry:0x%x", transId,
mndTransStr(pAction->stage), action, pRsp->code, pAction->acceptableCode, pAction->retryCode);
} else {