diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index 6d51cee14e1717c3846e772eb6fc0f583499959f..e260ef4654fbf93c404b827de2265269c503fccf 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);