refactor(sync): add pre-commit interface
This commit is contained in:
parent
0addf09996
commit
49a4e83d48
|
@ -2506,9 +2506,6 @@ int32_t syncNodeOnClientRequestCb(SSyncNode* ths, SyncClientRequest* pMsg, SyncI
|
||||||
// pre commit
|
// pre commit
|
||||||
syncNodePreCommit(ths, pEntry, 0);
|
syncNodePreCommit(ths, pEntry, 0);
|
||||||
|
|
||||||
SRpcMsg rpcMsg;
|
|
||||||
syncEntry2OriginalRpc(pEntry, &rpcMsg);
|
|
||||||
|
|
||||||
// if only myself, maybe commit right now
|
// if only myself, maybe commit right now
|
||||||
if (ths->replicaNum == 1) {
|
if (ths->replicaNum == 1) {
|
||||||
syncMaybeAdvanceCommitIndex(ths);
|
syncMaybeAdvanceCommitIndex(ths);
|
||||||
|
|
Loading…
Reference in New Issue