From bbe85695cfd02d380761b4d2d1363e1e7b5b168c Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Wed, 20 Apr 2022 20:29:20 +0800 Subject: [PATCH] add syncMaybeAdvanceCommitIndex, maybe only one replica --- source/libs/sync/src/syncMain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index 6d51cee14e..e260ef4654 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -890,6 +890,7 @@ void syncNodeCandidate2Leader(SSyncNode* pSyncNode) { // use this now syncNodeAppendNoop(pSyncNode); + syncMaybeAdvanceCommitIndex(pSyncNode); // maybe only one replica // do not use this // syncNodeEqNoop(pSyncNode); -- GitLab