refactor(sync): add pre-commit interface

This commit is contained in:
Minghao Li 2022-07-26 13:23:56 +08:00
parent 0addf09996
commit 49a4e83d48
1 changed files with 0 additions and 3 deletions

View File

@ -2506,9 +2506,6 @@ int32_t syncNodeOnClientRequestCb(SSyncNode* ths, SyncClientRequest* pMsg, SyncI
// pre commit
syncNodePreCommit(ths, pEntry, 0);
SRpcMsg rpcMsg;
syncEntry2OriginalRpc(pEntry, &rpcMsg);
// if only myself, maybe commit right now
if (ths->replicaNum == 1) {
syncMaybeAdvanceCommitIndex(ths);