sync refactor
This commit is contained in:
parent
83ecb8dd30
commit
16b44c9e28
|
@ -198,7 +198,9 @@ int32_t syncNodeOnAppendEntriesCb(SSyncNode* ths, SyncAppendEntries* pMsg) {
|
||||||
if (ths->pFsm->FpRollBackCb != NULL) {
|
if (ths->pFsm->FpRollBackCb != NULL) {
|
||||||
SSyncRaftEntry* pRollBackEntry = logStoreGetEntry(ths->pLogStore, index);
|
SSyncRaftEntry* pRollBackEntry = logStoreGetEntry(ths->pLogStore, index);
|
||||||
assert(pRollBackEntry != NULL);
|
assert(pRollBackEntry != NULL);
|
||||||
assert(pRollBackEntry->entryType == SYNC_RAFT_ENTRY_DATA);
|
|
||||||
|
// maybe is a NOOP ENTRY
|
||||||
|
// assert(pRollBackEntry->entryType == SYNC_RAFT_ENTRY_DATA);
|
||||||
|
|
||||||
SRpcMsg rpcMsg;
|
SRpcMsg rpcMsg;
|
||||||
syncEntry2OriginalRpc(pRollBackEntry, &rpcMsg);
|
syncEntry2OriginalRpc(pRollBackEntry, &rpcMsg);
|
||||||
|
|
Loading…
Reference in New Issue