refact: adjust logging msg for incomplete fsm state

This commit is contained in:
Benguang Zhao 2023-10-08 17:41:33 +08:00
parent c1f1709d59
commit d671283b8b
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ int32_t syncNodeOnAppendEntries(SSyncNode* ths, const SRpcMsg* pRpcMsg) {
pMsg->vgId, pMsg->prevLogIndex + 1, pMsg->term, pMsg->prevLogIndex, pMsg->prevLogTerm, pMsg->commitIndex,
pEntry->term);
if (ths->fsmState == SYNC_FSM_STATE_INCOMPLETE) {
if (ths->fsmState != SYNC_FSM_STATE_NORMAL) {
pReply->fsmState = ths->fsmState;
sError("vgId:%d, not to accept sync log msg due to incomplete fsm state", ths->vgId);
sWarn("vgId:%d, unable to accept, due to incomplete fsm state. index:%" PRId64, ths->vgId, pEntry->index);
syncEntryDestroy(pEntry);
goto _SEND_RESPONSE;
}