sync refactor

This commit is contained in:
Minghao Li 2022-03-25 10:37:26 +08:00
parent 83ecb8dd30
commit 16b44c9e28
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ int32_t syncNodeOnAppendEntriesCb(SSyncNode* ths, SyncAppendEntries* pMsg) {
if (ths->pFsm->FpRollBackCb != NULL) {
SSyncRaftEntry* pRollBackEntry = logStoreGetEntry(ths->pLogStore, index);
assert(pRollBackEntry != NULL);
assert(pRollBackEntry->entryType == SYNC_RAFT_ENTRY_DATA);
// maybe is a NOOP ENTRY
// assert(pRollBackEntry->entryType == SYNC_RAFT_ENTRY_DATA);
SRpcMsg rpcMsg;
syncEntry2OriginalRpc(pRollBackEntry, &rpcMsg);