fix/transaction-retry

This commit is contained in:
dmchen 2023-11-01 09:03:13 +00:00 committed by dm chen
parent 14695cb685
commit 481c5981d6
1 changed files with 10 additions and 1 deletions

View File

@ -1113,7 +1113,16 @@ static int32_t mndTransWriteSingleLog(SMnode *pMnode, STrans *pTrans, STransActi
} }
static int32_t mndTransSendSingleMsg(SMnode *pMnode, STrans *pTrans, STransAction *pAction) { static int32_t mndTransSendSingleMsg(SMnode *pMnode, STrans *pTrans, STransAction *pAction) {
if (pAction->msgSent) return 0; if (pAction->msgSent){
if (pAction->msgReceived) {
if (pAction->errCode != 0 && pAction->errCode != pAction->acceptableCode) {
mndTransResetAction(pMnode, pTrans, pAction);
} else {
mInfo("trans:%d, %s execute successfully", pTrans->id, mndTransStr(pAction->stage));
}
}
return 0;
}
if (mndCannotExecuteTransAction(pMnode)) return -1; if (mndCannotExecuteTransAction(pMnode)) return -1;
int64_t signature = pTrans->id; int64_t signature = pTrans->id;