From 3d8ebc2660bdd3519eb1c1417812059ce515511e Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Mon, 13 Jun 2022 15:38:43 +0800 Subject: [PATCH] refactor: adjust logs --- source/dnode/mnode/impl/src/mndTrans.c | 14 +++++++------- tests/pytest/util/dnodes.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndTrans.c b/source/dnode/mnode/impl/src/mndTrans.c index 033687db3e..1ec4799419 100644 --- a/source/dnode/mnode/impl/src/mndTrans.c +++ b/source/dnode/mnode/impl/src/mndTrans.c @@ -968,7 +968,7 @@ static int32_t mndTransSendSingleMsg(SMnode *pMnode, STrans *pTrans, STransActio static int32_t mndTransExecNullMsg(SMnode *pMnode, STrans *pTrans, STransAction *pAction) { pAction->rawWritten = 0; pAction->errCode = 0; - mDebug("trans:%d, %s:%d null action executed", pTrans->id, mndTransStr(pAction->stage), pAction->id); + mDebug("trans:%d, %s:%d confirm action executed", pTrans->id, mndTransStr(pAction->stage), pAction->id); pTrans->lastAction = pAction->id; pTrans->lastMsgType = pAction->msgType; @@ -1025,18 +1025,18 @@ static int32_t mndTransExecuteActions(SMnode *pMnode, STrans *pTrans, SArray *pA if (numOfExecuted == numOfActions) { if (errCode == 0) { pTrans->lastAction = 0; - pTrans->lastErrorNo = 0; pTrans->lastMsgType = 0; memset(&pTrans->lastEpset, 0, sizeof(pTrans->lastEpset)); + pTrans->lastErrorNo = 0; mDebug("trans:%d, all %d actions execute successfully", pTrans->id, numOfActions); return 0; } else { mError("trans:%d, all %d actions executed, code:0x%x", pTrans->id, numOfActions, errCode & 0XFFFF); if (pErrAction != NULL) { - pTrans->lastMsgType = pErrAction->msgType; pTrans->lastAction = pErrAction->id; - pTrans->lastErrorNo = pErrAction->errCode; + pTrans->lastMsgType = pErrAction->msgType; pTrans->lastEpset = pErrAction->epSet; + pTrans->lastErrorNo = pErrAction->errCode; } mndTransResetActions(pMnode, pTrans, pArray); terrno = errCode; @@ -1103,13 +1103,13 @@ static int32_t mndTransExecuteRedoActionsSerial(SMnode *pMnode, STrans *pTrans) } if (code == 0) { - pTrans->lastAction = 0; - pTrans->lastErrorNo = 0; + pTrans->lastAction = action; pTrans->lastMsgType = 0; + pTrans->lastErrorNo = 0; memset(&pTrans->lastEpset, 0, sizeof(pTrans->lastEpset)); } else { - pTrans->lastMsgType = pAction->msgType; pTrans->lastAction = action; + pTrans->lastMsgType = pAction->msgType; pTrans->lastErrorNo = code; pTrans->lastEpset = pAction->epSet; } diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index d08af76e2d..9627282ba5 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -133,8 +133,8 @@ class TDDnode: "qDebugFlag": "143", "rpcDebugFlag": "143", "tmrDebugFlag": "131", - "uDebugFlag": "143", - "sDebugFlag": "135", + "uDebugFlag": "131", + "sDebugFlag": "143", "wDebugFlag": "143", "qdebugFlag": "143", "numOfLogLines": "100000000",