fix/transaction-retry
This commit is contained in:
parent
034546a490
commit
41749b7c52
|
@ -1115,7 +1115,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;
|
||||||
|
|
Loading…
Reference in New Issue